You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/build.yml
+4-12Lines changed: 4 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -50,26 +50,18 @@ jobs:
50
50
name: Artifacts
51
51
path: build/libs/
52
52
- name: upload to modrinth
53
-
if: ${{ runner.os == 'Linux' && matrix.java == '17' && (startsWith(github.event.head_commit.message, 'update mod version to ') || startsWith(github.event.head_commit.message, '[release skip] update mod version to ')) }}
53
+
if: ${{ runner.os == 'Linux' && matrix.java == '17' && startsWith(github.event.head_commit.message, 'update mod version to ') }}
54
54
run: ./gradlew modrinth
55
55
env:
56
56
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
57
-
- name: parse mod version
58
-
id: get_mod_version
59
-
if: ${{ runner.os == 'Linux' && matrix.java == '17' && (startsWith(github.event.head_commit.message, 'update mod version to ') || startsWith(github.event.head_commit.message, '[modrinth skip] update mod version to ')) }}
if: ${{ runner.os == 'Linux' && matrix.java == '17' && (startsWith(github.event.head_commit.message, 'update mod version to ') || startsWith(github.event.head_commit.message, '[modrinth skip] update mod version to ')) }}
58
+
if: ${{ runner.os == 'Linux' && matrix.java == '17' && startsWith(github.event.head_commit.message, 'update mod version to ') }}
67
59
uses: softprops/action-gh-release@v0.1.15
68
60
with:
69
61
files: build/libs/*.jar
70
62
body_path: release.md
71
-
name: "v${{ steps.get_mod_version.outputs.mod_version }} For Minecraft 1.17"
0 commit comments