Skip to content

Commit

Permalink
avoid double run of black.yml on internal PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkeitel authored Jun 28, 2024
1 parent e94c55b commit 699ac5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on: [push, pull_request]
jobs:
black:
runs-on: ubuntu-latest
# We want to run on external PRs, but not on our own internal PRs as they'll be run
# by the push to the branch.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
Expand Down

0 comments on commit 699ac5d

Please sign in to comment.