Skip to content

Commit 7eea6bb

Browse files
authored
Merge pull request #50 from PHPCSStandards/feature/ghactions-dont-run-cronjobs-on-forks
GH Actions: don't run cron jobs on forks
2 parents 24e2aa4 + 3813224 commit 7eea6bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414

1515
jobs:
1616
xmllint:
17+
# Don't run the cron job on forks.
18+
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
19+
1720
name: 'Check install and XML'
1821
runs-on: ubuntu-latest
1922

0 commit comments

Comments
 (0)