Skip to content

Commit

Permalink
fix(release): strip the unreleased title from tag message
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Jun 19, 2021
1 parent 62403be commit c7f08fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ if [ -n "$1" ]; then
cargo run -- --tag "$1" > CHANGELOG.md
git add -A && git commit -m "chore(release): prepare for $1"
changelog=$(cargo run -- --unreleased --strip all)
changelog=${changelog//### /}
changelog=${changelog//## [unreleased\]/}
git -c user.name="git-cliff" \
-c user.email="[email protected]" \
-c user.signingkey="1D2D410A741137EBC544826F4A92FA17B6619297" \
tag -s -a "$1" -m "Release $1\n\n${changelog//### /}"
tag -s -a "$1" -m "Release $1" -m "$changelog"
fi

0 comments on commit c7f08fe

Please sign in to comment.