Skip to content

Commit a08812d

Browse files
authored
Avoid duplicate runs of the the Lint action (#13)
Previously we would run twice if a commit was to a branch which was in a pull request.
1 parent 6d4245d commit a08812d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/black.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on: [push, pull_request]
44

55
jobs:
66
lint:
7+
if:
8+
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
9+
github.repository
710
runs-on: ubuntu-latest
811
steps:
912
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)