Skip to content

Commit

Permalink
fix: attempt to close previous PRs only if a new one was created (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
rriski authored Nov 8, 2024
1 parent ae0876c commit f1839a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,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("updater/")) | .number')
Expand Down

0 comments on commit f1839a0

Please sign in to comment.