From db69eeb64ce476f53cb0db7a883cdd5b9f313d39 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 3 Oct 2024 14:16:09 +0200 Subject: [PATCH] GH Actions: don't run cron job on forks Noticed a PR had been automatically opened on my fork. Typically cron-jobs which should not run on forks. --- .github/workflows/update.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 0ba32d3f..726e427f 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -6,6 +6,9 @@ on: jobs: cucumber-update: + # Don't run the cron job on forks. + if: ${{ github.event_name != 'schedule' || github.repository == 'Behat/Gherkin' }} + runs-on: ubuntu-latest name: Upstream cucumber update steps: