ci: fix outputting release message

This commit is contained in:
ThetaDev 2024-03-22 22:34:18 +01:00
parent b8fc001ccf
commit 151dc34f6e
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
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}"