Skip to content

Commit ee80c61

Browse files
committed
update release guide and prep_release workflow. add missing title.
1 parent 3aae201 commit ee80c61

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/prep_release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

RELEASE_GUIDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Head over releases and select the prepared release.
2727

2828
Double 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

3232
Select 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

6060
Under 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

6464
Template:
6565

0 commit comments

Comments
 (0)