Merge pull request #2951 from laradock/ci-schedule-not-trigger-in-fork

Don't trigger on schedule event when in a fork
This commit is contained in:
Shao Yu-Lung (Allen) 2021-04-15 19:45:57 +08:00 committed by GitHub
commit 8251316651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,8 @@ on:
jobs:
build-php:
# Don't trigger on schedule event when in a fork
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'laradock/laradock')
runs-on: ubuntu-latest
strategy:
fail-fast: false
@ -42,6 +44,8 @@ jobs:
docker-compose down
build-other:
# Don't trigger on schedule event when in a fork
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'laradock/laradock')
runs-on: ubuntu-latest
strategy:
fail-fast: false