Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <[email protected]>
  • Loading branch information
RafaelGSS and aduh95 authored Nov 14, 2024
1 parent 23fe596 commit 452c3c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release-proposal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ jobs:

- name: Start git node release prepare
run: |
./tools/actions/create-release.sh "${RELEASE_DATE}"
./tools/actions/create-release.sh "${RELEASE_DATE}" '${{ inputs.release-line }}'
7 changes: 4 additions & 3 deletions tools/actions/create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
set -xe

RELEASE_DATE=$1
RELEASE_LINE=$2

git node release --prepare --skipBranchDiff
# We use it to not specify the branch name as it changes based on
# the commit list (semver-minor/semver-patch)
git config push.default current
MATCHER="/## $RELEASE_DATE/,/^<a id=/{ if (!/^<a id=/) print }"
awk $MATCHER doc/changelogs/CHANGELOG_V23.md > pr-body.md
gh pr create --body-file pr-body.md
awk "/## ${RELEASE_DATE}/,/^<a id=/{ if (!/^<a id=/) print }" \
"doc/changelogs/CHANGELOG_V${RELEASE_LINE}.md" |\
gh pr create --body-file -
# TODO: ammend with proposal PR

0 comments on commit 452c3c2

Please sign in to comment.