diff --git a/.github/actions/create-pull-request/action.yml b/.github/actions/create-pull-request/action.yml index 815d67682a..4b562a6183 100644 --- a/.github/actions/create-pull-request/action.yml +++ b/.github/actions/create-pull-request/action.yml @@ -45,10 +45,11 @@ runs: GH_TOKEN: '${{ steps.generate_token.outputs.token }}' shell: 'bash' run: | - gh pr create \ + set -e + PR_URL=$(gh pr create \ --title "${{ inputs.pr-title }}" \ --body "${{ inputs.pr-body }}" \ --base "${{ inputs.base-branch }}" \ --head "${{ inputs.branch-name }}" \ - --fill - gh pr merge --auto --squash + --fill) + gh pr merge "$PR_URL" --auto --squash