From 64e76db430186103f35cd031c3f32600f78404fc Mon Sep 17 00:00:00 2001 From: Daniel Kotik Date: Wed, 3 Jul 2024 18:03:51 +0200 Subject: [PATCH] Calculate short SHA using parameter expansion --- .github/workflows/cpu-tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/cpu-tests.yml b/.github/workflows/cpu-tests.yml index a00dd43f2..9590c55c9 100644 --- a/.github/workflows/cpu-tests.yml +++ b/.github/workflows/cpu-tests.yml @@ -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