diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ebdc3d0..5700c412 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: - name: Add SHORT_SHA env property with commit short sha run: | - SHORT_SHA=$(git rev-parse --short=9 ${{ github.event.pull_request.head.sha }}) + SHORT_SHA=$(git rev-parse --short=9 HEAD) echo "SHORT_SHA=$SHORT_SHA" >> $GITHUB_ENV echo "Short SHA: $SHORT_SHA"