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:
parent
5a87809b25
commit
e2cce0e026
1 changed files with 3 additions and 3 deletions
6
.github/release-notes.sh
vendored
6
.github/release-notes.sh
vendored
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue