Skip to content

Commit d66e89a

Browse files
committed
chore: Fix release.yml
1 parent b3e2973 commit d66e89a

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Release on tag
22

33
on:
4+
workflow_dispatch:
45
push:
56
tags:
67
- '*'
@@ -36,7 +37,8 @@ jobs:
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

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

0 commit comments

Comments
 (0)