diff --git a/.github/workflows/create_release_pr.yml b/.github/workflows/create_release_pr.yml index 0f05129f0..1a60c61e8 100644 --- a/.github/workflows/create_release_pr.yml +++ b/.github/workflows/create_release_pr.yml @@ -15,7 +15,12 @@ jobs: GH_TOKEN: ${{ github.token }} run: | PR_NUMBERS=$(gh api repos/${{ github.repository }}/compare/master...develop --jq '.commits[] | select(.commit.message | startswith("Merge pull request")) | .commit.message | capture("#(?\\d+)") | "#\(.pr_number)"') - PR_BODY="Merges in:\n$(echo "$PR_NUMBERS" | sed 's/^/- /')\n\nThis PR was auto-generated on $(date +%d-%m-%Y) at $(date +%H:%M:%S) and will be overwritten on the next push to develop." + PR_BODY="Merges in: + + $(echo "$PR_NUMBERS" | sed 's/^/- /') + + This PR was auto-generated on $(date +%d-%m-%Y) at $(date +%H:%M:%S) + Changes will be overwritten on next push" # Check if a PR already exists EXISTING_PR=$(gh pr list --base master --head develop --json number --jq '.[0].number')