From 9597c089617af19e98735ad89776667b1cd0c0d7 Mon Sep 17 00:00:00 2001 From: "Shao Yu-Lung (Allen)" Date: Thu, 15 Apr 2021 14:16:50 +0800 Subject: [PATCH] Don't trigger on schedule event when in a fork --- .github/workflows/main-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml index fd2f6c7..f36c43e 100644 --- a/.github/workflows/main-ci.yml +++ b/.github/workflows/main-ci.yml @@ -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