From e8f12c58582174952186482df13ae82da37d62eb Mon Sep 17 00:00:00 2001 From: Yusuke Hatanaka Date: Mon, 6 Jan 2025 19:13:19 +0900 Subject: [PATCH] fix: quote the command to create PR in release PR action again and again and again (#13) --- .github/actions/create-release-pr-for-gem/action.yml | 2 +- .github/actions/create-release-pr-for-npm/action.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/create-release-pr-for-gem/action.yml b/.github/actions/create-release-pr-for-gem/action.yml index b193546..2766f8b 100644 --- a/.github/actions/create-release-pr-for-gem/action.yml +++ b/.github/actions/create-release-pr-for-gem/action.yml @@ -62,6 +62,6 @@ runs: ${{ steps.changelog.outputs.clean_changelog }} EOF ) - ESCAPED_BODY=$(echo $BODY | sed 's/"/\\"/g') + ESCAPED_BODY=$(echo "$BODY" | sed 's/"/\\"/g') 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 }} shell: bash diff --git a/.github/actions/create-release-pr-for-npm/action.yml b/.github/actions/create-release-pr-for-npm/action.yml index 49b3f90..e26e404 100644 --- a/.github/actions/create-release-pr-for-npm/action.yml +++ b/.github/actions/create-release-pr-for-npm/action.yml @@ -58,6 +58,6 @@ runs: ${{ steps.changelog.outputs.clean_changelog }} EOF ) - ESCAPED_BODY=$(echo $BODY | sed 's/"/\\"/g') + ESCAPED_BODY=$(echo "$BODY" | sed 's/"/\\"/g') 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 }} shell: bash