Skip to content

Commit ee30f11

Browse files
committed
only run action on pull_request events if from forked repo
1 parent c025f87 commit ee30f11

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/format-and-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ concurrency:
88
cancel-in-progress: true
99
jobs:
1010
lint:
11+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.repository != github.event.pull_request.head.repo.full_name)
1112
runs-on: ubuntu-latest
1213
strategy:
1314
matrix:

0 commit comments

Comments
 (0)