From 7fcdd518e6d7674a33ce710c59124b7cec0824fe Mon Sep 17 00:00:00 2001 From: Thiakil Date: Fri, 14 Jul 2023 19:45:58 +0800 Subject: [PATCH] set tag to current commit not default branch --- .github/workflows/gradle-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml index 1c63285583c..8fd7d9e1bf1 100644 --- a/.github/workflows/gradle-publish.yml +++ b/.github/workflows/gradle-publish.yml @@ -65,6 +65,7 @@ jobs: files: build/libs/*.jar body_path: build/changelog.html tag_name: v${{ steps.gradle_props.outputs.minecraft_version }}-${{ steps.gradle_props.outputs.mod_version }}.${{ github.run_number }} + target_commitish: ${{ github.sha }} # - name: Publish # uses: gradle/gradle-build-action@v2