chore: fix the commit sha used for the published version

This commit is contained in:
mworzala 2023-12-18 07:08:13 +02:00 committed by Matt Worzala
parent 7e47136f28
commit 939c5231f6
1 changed files with 3 additions and 1 deletions

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