ci: fix outputting release message

This commit is contained in:
ThetaDev 2024-03-22 22:34:18 +01:00
parent 3d16918246
commit 2f2574e81d
2 changed files with 10 additions and 4 deletions

View file

@ -86,4 +86,4 @@ release crate="rustypipe":
git add "$CHANGELOG" "$CARGO_TOML"
git commit -m "chore(release): release $CRATE v$VERSION"
awk 'BEGIN{RS="(^|\n)## "} NR==2 { print "##",$0 }' "$CHANGELOG" | git tag -a -F - --cleanup whitespace "${CRATE}/v${VERSION}"
awk 'BEGIN{RS="(^|\n)## [^\n]+\n*"} NR==2 { print }' "$CHANGELOG" | git tag -as -F - --cleanup whitespace "${CRATE}/v${VERSION}"