Skip to content

Commit 2227535

Browse files
committed
Skip linting on pull requests for the same repository
1 parent 626c2bd commit 2227535

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/lint.yml

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

55
jobs:
66
clang-format:
7+
# Skip building pull requests from the same repository
8+
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }}
79
runs-on: ubuntu-latest
810

911
steps:
@@ -27,6 +29,8 @@ jobs:
2729
exit 1
2830
2931
editorconfig:
32+
# Skip building pull requests from the same repository
33+
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }}
3034
runs-on: ubuntu-latest
3135

3236
steps:

0 commit comments

Comments
 (0)