File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed
Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ name: Publish mod version
88on :
99 workflow_dispatch :
1010 inputs :
11- tag_version :
11+ version :
1212 description : ' Mod version'
1313 required : true
1414 release_type :
4545 file_pattern : gradle.properties
4646 tagging_message : " v${{ github.event.inputs.version }}"
4747
48- - name : Generate Changelog
49- run : |
50- echo "### Changelog ${{ github.event.inputs.version }}-${{ github.event.inputs.release-type }}" > CHANGELOG.md
51- if git describe --tags --abbrev=0 > /dev/null 2>&1; then
52- latest_tag=$(git describe --tags --abbrev=0)
53- previous_tag=$(git describe --tags --abbrev=0 ${latest_tag}^)
54- changelog=$(git log --pretty=format:'- %s' --oneline --decorate --decorate-refs=0 ${previous_tag}..${latest_tag})
55- echo "${changelog}" >> CHANGELOG.md
56- else
57- echo "- No tags found" >> CHANGELOG.md
58- fi
59-
6048 - name : Setup Java
6149 uses : actions/setup-java@v3
6250 with :
8270
8371 files-primary : build/libs/!(*-@(dev|sources|javadoc)).jar
8472 files-secondary : build/libs/*-@(dev|sources|javadoc).jar
85- name : GroovyScript-${{ github.event.inputs.tag_version }}
86- version : ${{ github.event.inputs.tag_version }}
73+ name : GroovyScript-${{ github.event.inputs.version }}
74+ version : ${{ github.event.inputs.version }}
8775 version-type : ${{ github.event.inputs.release_type }}
88- changelog-file : CHANGELOG.md
8976 loaders : |
9077 forge
9178 game-versions : |
You can’t perform that action at this time.
0 commit comments