diff --git a/tools/actions/create-release.sh b/tools/actions/create-release.sh index b149d32de419cb..42e01731686736 100755 --- a/tools/actions/create-release.sh +++ b/tools/actions/create-release.sh @@ -18,13 +18,13 @@ git node release --prepare --skipBranchDiff --yes --releaseDate "$RELEASE_DATE" # the commit list (semver-minor/semver-patch) git config push.default current +TITLE=$(awk "/^## ${RELEASE_DATE}/ { print substr(\$0, 4) }" "doc/changelogs/CHANGELOG_V${RELEASE_LINE}.md") + # Use a temporary file for the PR body TEMP_BODY=$(mktemp) awk "/## ${RELEASE_DATE}/,/^ "$TEMP_BODY" -gh pr create --body-file "$TEMP_BODY" +gh pr create --title "$TITLE" --body-file "$TEMP_BODY" -# Clean up the temporary file rm "$TEMP_BODY" - # TODO: amend with proposal PR