Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! build: add create release p…
Browse files Browse the repository at this point in the history
…roposal action
  • Loading branch information
nodejs-github-bot committed Nov 18, 2024
1 parent b406328 commit fee2f6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/actions/create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}/,/^<a id=/{ if (!/^<a id=/) print }" "doc/changelogs/CHANGELOG_V${RELEASE_LINE}.md" > "$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

0 comments on commit fee2f6d

Please sign in to comment.