chore: fix the commit sha used for the published version

(cherry picked from commit 939c5231f6)
This commit is contained in:
mworzala 2023-12-18 07:08:13 +02:00
parent de6b292d87
commit 3d8350563f
No known key found for this signature in database
GPG Key ID: B148F922E64797C7

View File

@ -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 }}