Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,9 @@ jobs:
if: ${{ steps.release.outputs.pr }}
env:
GH_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }}
PR_NUMBER: ${{ fromJSON(steps.release.outputs.pr).number }}
run: gh pr merge "$PR_NUMBER" --squash
# Pass the raw output through and parse it in the shell. Do NOT call
# fromJSON() here: on runs where release-please cuts the release there
# is no open PR, `pr` is empty, and fromJSON('') fails the whole
# workflow with a template error even though `if` skips the step.
RELEASE_PR: ${{ steps.release.outputs.pr }}
run: gh pr merge "$(jq -r '.number' <<< "$RELEASE_PR")" --squash
Loading