diff --git a/release.sh b/release.sh index 344136d5796..7e6a943e310 100755 --- a/release.sh +++ b/release.sh @@ -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