From 68fafd9a55dcf4547880627d082091db03b2c906 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 use 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 4001ae8b..97c5459a 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.event.pull_request.head.sha }}) echo "SHORT_SHA=$SHORT_SHA" >> $GITHUB_ENV echo "Short SHA: $SHORT_SHA"