Skip to content

Commit ad5a679

Browse files
committed
chore(ci): prevent duplicate commit validation in PRs
1 parent f1be29e commit ad5a679

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/commit-validation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
jobs:
1313
formatting:
14+
if: ${{ (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.fork) }}
1415
runs-on: ubuntu-latest
1516

1617
steps:
@@ -25,6 +26,7 @@ jobs:
2526
- run: npm run format:ci
2627

2728
build:
29+
if: ${{ (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.fork) }}
2830
runs-on: ubuntu-latest
2931

3032
steps:
@@ -62,6 +64,7 @@ jobs:
6264

6365
# Run with most databases possible to provide the coverage of the tests
6466
coverage:
67+
if: ${{ (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.fork) }}
6568
runs-on: ubuntu-latest
6669
needs: [tests-linux, tests-windows]
6770
steps:

0 commit comments

Comments
 (0)