Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyd3d committed Aug 22, 2024
1 parent 0a7ac03 commit 67e6b53
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,9 @@ jobs:

- name: Check if release tag's SHA is in artifactory
run: |
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
TAG_COMMIT_SHA=$(git rev-list -n 1 $TAG_NAME)
echo "TAG_COMMIT_SHA=$TAG_COMMIT_SHA" >> $GITHUB_ENV
echo "SHA_SHORT=$(echo $TAG_COMMIT_SHA | cut -c1-7)" >> $GITHUB_ENV
TAG_NAME="${GITHUB_REF#refs/tags/}"
SHA_SHORT=$(git rev-parse --short=7 ${TAG_NAME})
echo "SHA_SHORT=${SHA_SHORT}" >> $GITHUB_ENV
if ! docker pull kennyd3d/${{ env.ARTIFACT_NAME }}:${{ env.SHA_SHORT }}; then
echo "❌ Failed to pull Docker image kennyd3d/${{ env.ARTIFACT_NAME }}:${{ env.SHA_SHORT }}" >> $GITHUB_STEP_SUMMARY
exit 1
Expand Down

0 comments on commit 67e6b53

Please sign in to comment.