File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 11name : Release on tag
22
33on :
4+ workflow_dispatch :
45 push :
56 tags :
67 - ' *'
3637 id : version
3738 run : |
3839 # Extract mod and minecraft version from tag
39- mod_version=${GITHUB_REF_NAME//@(*v|+*)}
40+ mod_version=${GITHUB_REF_NAME#v}
41+ mod_version="${mod_version%+*}"
4042 minecraft_version=${GITHUB_REF_NAME#*+}
4143 echo "mod=$mod_version" >> $GITHUB_OUTPUT
4244 echo "minecraft=$minecraft_version" >> $GITHUB_OUTPUT
@@ -51,14 +53,18 @@ jobs:
5153
5254 - name : Parse changelog
5355 id : changelog
56+ continue-on-error : true
5457 run : |
5558 # Extract the changelog entry for this release
5659 mkdir -p output
5760 changelog=output/changelog.md
58- parse-changelog CHANGELOG.md ${{ steps.version.outputs.full }} > $changelog
61+ parse-changelog CHANGELOG.md ${{ steps.version.outputs.full }} > $changelog || true
5962 if [[ ! -s $changelog ]]; then
6063 # No changelog for specific version (mod+minecraft), try just mod version
61- parse-changelog CHANGELOG.md ${{ steps.version.outputs.mod }} > $changelog
64+ parse-changelog CHANGELOG.md ${{ steps.version.outputs.mod }} > $changelog || true
65+ fi
66+ if [[ ! -s $changelog ]]; then
67+ echo "No changelog available" > $changelog
6268 fi
6369 echo Extracted changelog for this release:
6470 cat $changelog
You can’t perform that action at this time.
0 commit comments