Skip to content

Commit

Permalink
Calculate short SHA using parameter expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKotik committed Jul 3, 2024
1 parent d10d682 commit 64e76db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ jobs:
GIT_SHA=${GITHUB_REF_NAME}-$(git rev-parse --short "$GITHUB_SHA")
echo "GIT_SHA=$GIT_SHA"
echo "SHELL=$SHELL"
echo "GITHUB_SHA=$GITHUB_SHA"
echo "GITHUB_SHORT_SHA=${GITHUB_SHA:0:8}"
docker tag $IMAGE_NAME:$GITHUB_RUN_ID $IMAGE_REPO/$IMAGE_NAME:latest
docker tag $IMAGE_NAME:$GITHUB_RUN_ID $IMAGE_REPO/$IMAGE_NAME:$GIT_SHA
fi
Expand Down

0 comments on commit 64e76db

Please sign in to comment.