From 453194ae43958429998695921d9febe7d8575d83 Mon Sep 17 00:00:00 2001 From: mworzala Date: Mon, 18 Dec 2023 07:08:13 +0200 Subject: [PATCH] chore: fix the commit sha used for the published version (cherry picked from commit 939c5231f6971daf4dc8981c6b189a1c8aae2a06) --- .github/workflows/pr.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 171031c5a..7314f0b55 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 }}