From 452c3c2c1d8459447030998119423e35e2ea02a4 Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Wed, 13 Nov 2024 21:40:37 -0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Antoine du Hamel --- .github/workflows/create-release-proposal.yml | 2 +- tools/actions/create-release.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-release-proposal.yml b/.github/workflows/create-release-proposal.yml index 13ea3bddad4ea1..4084e75666ae6a 100644 --- a/.github/workflows/create-release-proposal.yml +++ b/.github/workflows/create-release-proposal.yml @@ -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 }}' diff --git a/tools/actions/create-release.sh b/tools/actions/create-release.sh index bca44e0e9f1f33..1f17ba489cd6f0 100755 --- a/tools/actions/create-release.sh +++ b/tools/actions/create-release.sh @@ -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/,/^ pr-body.md -gh pr create --body-file pr-body.md +awk "/## ${RELEASE_DATE}/,/^