Skip to content

Commit f8d2aa9

Browse files
authored
fix: quote the command to create PR in release PR action again and again (#12)
1 parent da2501e commit f8d2aa9

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/actions/create-release-pr-for-gem/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ runs:
5858
env:
5959
GH_TOKEN: ${{ env.GITHUB_TOKEN }}
6060
run: |
61-
BODY=${{ steps.changelog.outputs.clean_changelog }}
61+
BODY=$(cat <<EOF
62+
${{ steps.changelog.outputs.clean_changelog }}
63+
EOF
64+
)
6265
ESCAPED_BODY=$(echo $BODY | sed 's/"/\\"/g')
6366
gh pr create --title "chore: Release version to v${{ steps.changelog.outputs.version }}" --body "$ESCAPED_BODY" --base ${{ inputs.base-branch }} --head release/${{ inputs.tag-prefix }}${{ steps.changelog.outputs.version }}
6467
shell: bash

.github/actions/create-release-pr-for-npm/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ runs:
5454
env:
5555
GH_TOKEN: ${{ env.GITHUB_TOKEN }}
5656
run: |
57-
BODY=${{ steps.changelog.outputs.clean_changelog }}
57+
BODY=$(cat <<EOF
58+
${{ steps.changelog.outputs.clean_changelog }}
59+
EOF
60+
)
5861
ESCAPED_BODY=$(echo $BODY | sed 's/"/\\"/g')
5962
gh pr create --title "chore: Release version to v${{ steps.changelog.outputs.version }}" --body "$ESCAPED_BODY" --base ${{ inputs.base-branch }} --head release/${{ inputs.tag-prefix }}${{ steps.changelog.outputs.version }}
6063
shell: bash

0 commit comments

Comments
 (0)