Skip to content

Commit 5622367

Browse files
committed
update mod version to 1.3.1
1 parent 0d0c9fe commit 5622367

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,26 +50,18 @@ jobs:
5050
name: Artifacts
5151
path: build/libs/
5252
- 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 ') }}
5454
run: ./gradlew modrinth
5555
env:
5656
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 ')) }}
60-
run: |
61-
mod_version=${GITHUB_EVENT_HEAD-COMMIT_MESSAGE:22}
62-
echo "${GITHUB_EVENT_HEAD-COMMIT_MESSAGE}"
63-
echo "$mod_version"
64-
echo "mod_version=$mod_version" >> $GITHUB_OUTPUT
6557
- name: create github release
66-
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 ') }}
6759
uses: softprops/action-gh-release@v0.1.15
6860
with:
6961
files: build/libs/*.jar
7062
body_path: release.md
71-
name: "v${{ steps.get_mod_version.outputs.mod_version }} For Minecraft 1.17"
72-
tag_name: "v${{ steps.get_mod_version.outputs.mod_version }}"
63+
name: "v${{ vars.mod_version }} For Minecraft 1.17"
64+
tag_name: "v${{ vars.mod_version }}"
7365
target_commitish: ${{ github.sha }}
7466
token: ${{ secrets.GITHUB_TOKEN }}
7567
generate_release_notes: true

0 commit comments

Comments
 (0)