Skip to content

Commit

Permalink
fix: generate release notes in several steps [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam committed Nov 15, 2024
1 parent 4317f99 commit b9b5425
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 @@ -25,10 +25,12 @@ if [[ $( gh release view --repo "${ASSETS_REPOSITORY}" "${RELEASE_VERSION}" 2>&1

. ./utils.sh

RELEASE_NOTES=$( gh release view "${RELEASE_VERSION}" --json "body" --jq ".body" )

replace "s|MS_TAG_SHORT|$( echo "${MS_TAG//./_}" | cut -d'_' -f 1,2 )|" release_notes.txt
replace "s|MS_TAG|${MS_TAG}|" release_notes.txt
replace "s|RELEASE_VERSION|${RELEASE_VERSION}|" release_notes.txt
replace "s|RELEASE_NOTES|$( gh release view "${RELEASE_VERSION}" --json "body" --jq ".body" )|" release_notes.txt
replace "s|RELEASE_NOTES|${RELEASE_NOTES//$'\n'/\\n}|" release_notes.txt

gh release edit "${RELEASE_VERSION}" --notes-file release_notes.txt
fi
Expand Down

0 comments on commit b9b5425

Please sign in to comment.