diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 30f0a813..585bda6b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -40,7 +40,7 @@ jobs: - name: Get head git commit message id: get_head_commit_message - run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s $GITHUB_SHA)" >> "$GITHUB_OUTPUT" + run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s ${{ github.event.pull_request.head.sha || github.sha }})" >> "$GITHUB_OUTPUT" - uses: viash-io/viash-actions/setup@v5