diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a7b2be1df..41a872b50 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -48,7 +48,9 @@ jobs: distribution: 'temurin' - name: Set outputs id: vars - run: echo "short_commit_hash=${GITHUB_SHA::10}" >> $GITHUB_OUTPUT + run: | + export ACTUAL=${{ github.event.pull_request.head.sha }} + echo "short_commit_hash=${ACTUAL::10}" >> $GITHUB_OUTPUT - name: Publish to Sonatype env: MINESTOM_VERSION: ${{ github.head_ref }}-${{ steps.vars.outputs.short_commit_hash }}