diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index c62781790..d70d891b5 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -32,6 +32,8 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v4 + - id: vars + run: echo "short_commit_hash=${GITHUB_SHA::10}" >> $GITHUB_OUTPUT - name: Publish Artifacts env: MINESTOM_VERSION: ${{ github.head_ref }}-${{ steps.vars.outputs.short_commit_hash }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a93c01c4c..0cea8b337 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,8 @@ jobs: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} restore-keys: ${{ runner.os }}-gradle + - id: vars + run: echo "short_commit_hash=${GITHUB_SHA::10}" >> $GITHUB_OUTPUT - name: Publish to Central via Build if: github.repository_owner == 'Minestom' run: |