From 8d79dbf733877e757c2593da12905d16e7687aad Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 28 Jul 2022 15:18:16 +1200 Subject: [PATCH] MNT Only run cron on silverstripe account --- .github/workflows/ci.yml | 3 +++ .github/workflows/keepalive.yml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6afb73b67..f681e1e32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,9 @@ on: jobs: ci: + name: CI + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1 with: # Turn phpcoverage off because it causes a segfault diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml index ff47ec0dc..fb8787712 100644 --- a/.github/workflows/keepalive.yml +++ b/.github/workflows/keepalive.yml @@ -9,6 +9,8 @@ on: jobs: keepalive: name: Keepalive + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest steps: - name: Keepalive