Skip to content

Commit 52ba33f

Browse files
authored
Merge pull request #30 from PHPCompatibility/feature/ghactions-dont-run-cronjobs-on-forks
GH Actions: don't run cron jobs on forks
2 parents f0f6974 + 24e8958 commit 52ba33f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/validate.yml

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

1313
jobs:
1414
validate:
15+
# Don't run the cron job on forks.
16+
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
17+
1518
runs-on: ubuntu-latest
1619

1720
strategy:

0 commit comments

Comments
 (0)