Skip to content

Commit

Permalink
build: try add line-breaks?
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHulme committed Sep 18, 2024
1 parent d1679d9 commit f90ad92
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/create_release_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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("#(?<pr_number>\\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')
Expand Down

0 comments on commit f90ad92

Please sign in to comment.