File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,11 +39,13 @@ jobs:
3939 id : get_version
4040 run : |
4141 viash_version=$(bin/viash --version | cut -d ' ' -f 2)
42+ viash_minor_version=$(echo $viash_version | cut -d. -f1,2)
4243 echo "Detected Viash version: $viash_version"
44+ echo "Detected Viash minor version: $viash_minor_version"
4345 echo "viash_version=$viash_version" >> "$GITHUB_OUTPUT"
4446
4547 # fetch relevant changelog section
46- changelog_section=$(awk "/# Viash ${viash_version}.*/{flag=1;next}/^# /{flag=0}flag" CHANGELOG .md)
48+ changelog_section=$(awk "/# Viash ${viash_version}.*/{flag=1;print; next}/^# /{flag=0}flag" CHANGELOGS/CHANGELOG_${viash_minor_version} .md)
4749
4850 echo "changelog_section<<GITHUB_EOF" >> "$GITHUB_OUTPUT"
4951 echo "$changelog_section" >> "$GITHUB_OUTPUT"
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Head over releases and select the prepared release.
2727
2828Double check the tag version.
2929
30- Add the title from the changelog.md into the release notes.
30+ Add the title from the relevant ` CHANGELOGS/CHANGELOG_x.x.md ` into the release notes.
3131
3232Select the necessary prerelease or latest release options and hit the 'publish release' button.
3333
@@ -59,7 +59,7 @@ Short summary if you already have an operational envirionment:
5959
6060Under the ` develop ` branch,
6161- Update the version in ` build.sbt ` to the next version with a ` -dev ` suffix.
62- - Add a placeholder entry in ` CHANGELOG .md` for a future release.
62+ - Add a placeholder entry in ` CHANGELOGS/CHANGELOG_x.x .md` for a future release.
6363
6464Template:
6565
You can’t perform that action at this time.
0 commit comments