Skip to content

Commit

Permalink
Improve release content in version-bump.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Apr 6, 2024
1 parent 5c203c6 commit 58a44b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/latest_release_body.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@ If you wish to keep your favorites alive, please, [vote here](https://github.com
- Better frontend helpers
- New [Pagy Playground](https://ddnexus.github.io/pagy/playground/) to showcase, clone and develop pagy APPs without any setup on
your side (try the [pagy demo](https://ddnexus.github.io/pagy/playground.md#3-demo-app))
- See the [Changelog](https://ddnexus.github.io/pagy/changelog) for possible breaking changes
- See the [CHANGELOG](https://ddnexus.github.io/pagy/changelog) for possible breaking changes

### Changes

<!-- changes start -->
<!-- changes end -->

[CHANGELOG](https://ddnexus.github.io/pagy/changelog)
8 changes: 6 additions & 2 deletions scripts/version-bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,13 @@ echo "$(git log --format="- %s%b" "$old_vers"..HEAD)" > "$TMPLOG"
# Edit it
read -p 'Edit and save the changelog content (enter)> '
nano "$TMPLOG"
# Set the release body file used by .github/workflows/create_release.yml

# Insert the changes in the the release body file used by .github/workflows/create_release.yml
# which is triggered by the :rubygem_release task (push tag)
cp -fv "$TMPLOG" "$ROOT/.github/latest_release_body.md"
lead='^<!-- changes start -->$'
tail='^<!-- changes end -->$'
sed -i "/$lead/,/$tail/{ /$lead/{p; r $TMPLOG
}; /$tail/p; d }" "$ROOT/.github/latest_release_body.md"

# Update CHANGELOG
changelog=$(cat <(echo -e "<hr>\n\n## Version $new_vers\n") "$TMPLOG")
Expand Down

0 comments on commit 58a44b1

Please sign in to comment.