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 1
1
name : Release on tag
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
5
6
tags :
6
7
- ' *'
36
37
id : version
37
38
run : |
38
39
# 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%+*}"
40
42
minecraft_version=${GITHUB_REF_NAME#*+}
41
43
echo "mod=$mod_version" >> $GITHUB_OUTPUT
42
44
echo "minecraft=$minecraft_version" >> $GITHUB_OUTPUT
@@ -51,14 +53,18 @@ jobs:
51
53
52
54
- name : Parse changelog
53
55
id : changelog
56
+ continue-on-error : true
54
57
run : |
55
58
# Extract the changelog entry for this release
56
59
mkdir -p output
57
60
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
59
62
if [[ ! -s $changelog ]]; then
60
63
# 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
62
68
fi
63
69
echo Extracted changelog for this release:
64
70
cat $changelog
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 1.1.0+1.19.4 - 2024-04-20
4
+
5
+ ### Added
6
+
7
+ - Support for Minecraft 1.19.4
8
+
3
9
## 1.1.0+1.19.3 - 2023-03-16
4
10
5
11
### Added
You can’t perform that action at this time.
0 commit comments