File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-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
Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 1.1.0+1.19.4 - 2024-04-20
4+
5+ ### Added
6+
7+ - Support for Minecraft 1.19.4
8+
39## 1.1.0+1.19.3 - 2023-03-16
410
511### Added
You can’t perform that action at this time.
0 commit comments