Skip to content

Commit 0822a9b

Browse files
authored
fix: attempt to close previous PRs only if a new one was created (#177)
1 parent 364f893 commit 0822a9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/update.yml

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
schema bump
4444
automated pr
4545
- name: Close previous update PRs
46+
if: steps.create_pr.outputs.pull-request-operation == 'created'
4647
run: |
4748
new_pr_number=${{ steps.create_pr.outputs.pull-request-number }}
4849
prs=$(gh pr list --state open --json number,headRefName --jq '.[] | select(.headRefName | startswith("update/")) | .number')

0 commit comments

Comments
 (0)