Skip to content

Commit 913ba45

Browse files
authored
fix: use printf for PR body to avoid YAML indentation error in run block
Removed redundant line from PR body in release workflow.
1 parent 7a0dd6d commit 913ba45

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/create-release-pr.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,7 @@ jobs:
199199
--json number --jq '.[0].number' 2>/dev/null || echo "")
200200
201201
if [ -z "${EXISTING}" ]; then
202-
BODY="## Release v${NEXT_VERSION}
203-
204-
This PR bumps the version to \`${NEXT_VERSION}\` and will trigger an npm publish when merged."
202+
BODY=$(printf '## Release v%s\n\nThis PR bumps the version to `%s` and will trigger an npm publish when merged.' "${NEXT_VERSION}" "${NEXT_VERSION}")
205203
206204
gh pr create \
207205
--title "${TITLE}" \

0 commit comments

Comments
 (0)