Skip to content

Commit

Permalink
fix: attempt to close previous PRs only if a new one was created (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
rriski authored Nov 8, 2024
1 parent 364f893 commit 0822a9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
schema bump
automated pr
- name: Close previous update PRs
if: steps.create_pr.outputs.pull-request-operation == 'created'
run: |
new_pr_number=${{ steps.create_pr.outputs.pull-request-number }}
prs=$(gh pr list --state open --json number,headRefName --jq '.[] | select(.headRefName | startswith("update/")) | .number')
Expand Down

0 comments on commit 0822a9b

Please sign in to comment.