From 9c27cda671d63bee3242a0c49b133f5efb0d9271 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Fri, 9 Aug 2024 16:35:43 -0500 Subject: [PATCH] Pull the right sha --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4001ae8..e3bdd8b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: - name: Add SHORT_SHA env property with commit short sha run: | - SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7) + SHORT_SHA=$(git rev-parse --short ${{ github.sha }}) echo "SHORT_SHA=$SHORT_SHA" >> $GITHUB_ENV echo "Short SHA: $SHORT_SHA"