Skip to content

Commit

Permalink
Merge pull request #180168 from Homebrew/clean-up-closed-prs-head-rep…
Browse files Browse the repository at this point in the history
…o-check

workflows/clean-up-closed-prs: don't try to delete branch if PR is from fork
  • Loading branch information
ZhongRuoyu authored Aug 6, 2024
2 parents 9637621 + 3822096 commit 7781985
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/clean-up-closed-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
delete-branch:
if: >
github.repository_owner == 'Homebrew' &&
github.event.pull_request.head.repo.full_name == github.repository &&
!github.event.pull_request.merged
runs-on: ubuntu-latest
# Ignore errors as branch may already be deleted
Expand Down

0 comments on commit 7781985

Please sign in to comment.