1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 10:11:47 +02:00

Update .github/release-notes.sh

Co-authored-by: gustavderdrache <gustavderdrache@gmail.com>
This commit is contained in:
Graham Christensen 2025-04-28 12:42:48 -04:00 committed by GitHub
parent 5a87809b25
commit e2cce0e026
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,9 +22,9 @@ gh api "/repos/${GITHUB_REPOSITORY}/releases/generate-notes" \
-f "tag_name=${TAG_NAME}" > "$scratch/notes.json" -f "tag_name=${TAG_NAME}" > "$scratch/notes.json"
trim_trailing_newlines() { trim_trailing_newlines() {
tac \ local text
| awk 'flag {print} {if(NF) flag=1}' \ text="$(cat)"
| tac echo -n "${text//$'\n'}"
} }
linkify_gh() { linkify_gh() {