From c332209d2bfaeefadc51dee0cf57d92aee6b9381 Mon Sep 17 00:00:00 2001 From: Harry W Date: Wed, 17 Apr 2024 11:29:14 +0100 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2c0b7f..ef4867d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,6 +13,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + + - name: Get tag or commit id + id: get-version-id + uses: iawia002/get-tag-or-commit-id@v1 - name: Set up JDK 8 uses: actions/setup-java@v2 @@ -36,7 +40,7 @@ jobs: files: | target/ForgeServerJAR.jar token: ${{ secrets.GITHUB_TOKEN }} - release_name: Release ${{ GITHUB_SHA::6 }} - tag_name: ${{ GITHUB_SHA::6 }} + release_name: Release ${{ steps.get-version-id.outputs.id }} + tag_name: ${{ steps.get-version-id.outputs.id }} draft: false prerelease: false