Skip to content

Commit 3040ccc

Browse files
committed
switch to run_number and add missing env to build step
1 parent d7b96f4 commit 3040ccc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ jobs:
4747
with:
4848
arguments: clean build outputChangelog
4949
gradle-version: wrapper
50+
env:
51+
BUILD_NUMBER: ${{ github.run_number }}
52+
GIT_COMMIT: ${{ github.sha }}
53+
GIT_PREVIOUS_SUCCESSFUL_COMMIT: ${{ steps.last_success_build.outputs.sha }}
5054

5155
- name: Upload to workflow artifacts
5256
uses: actions/upload-artifact@v3
@@ -60,7 +64,7 @@ jobs:
6064
with:
6165
files: build/libs/*.jar
6266
body_path: build/changelog.html
63-
tag_name: v${{ steps.gradle_props.outputs.minecraft_version }}-${{ steps.gradle_props.outputs.mod_version }}.${{ github.run_id }}
67+
tag_name: v${{ steps.gradle_props.outputs.minecraft_version }}-${{ steps.gradle_props.outputs.mod_version }}.${{ github.run_number }}
6468

6569
# - name: Publish
6670
# uses: gradle/gradle-build-action@v2

0 commit comments

Comments
 (0)