From b40f92eba973b582a44074e03d141e9e1df22f0c Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Tue, 5 Nov 2024 04:03:32 +0100 Subject: [PATCH] CI: Skip class ref. sync and offline docs on forks --- .github/workflows/build_offline_docs.yml | 3 +++ .github/workflows/sync_class_ref.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/build_offline_docs.yml b/.github/workflows/build_offline_docs.yml index 4499de52b..73f6308a8 100644 --- a/.github/workflows/build_offline_docs.yml +++ b/.github/workflows/build_offline_docs.yml @@ -8,6 +8,9 @@ on: jobs: build: + # Don't run scheduled runs on forks unless the CI_OFFLINE_DOCS_CRON variable is set to 'true'. + # Manual runs can still be triggered as normal. + if: ${{ github.repository_owner == 'godotengine' || github.event_name != 'schedule' || vars.CI_OFFLINE_DOCS_CRON == 'true' }} runs-on: ubuntu-22.04 strategy: matrix: diff --git a/.github/workflows/sync_class_ref.yml b/.github/workflows/sync_class_ref.yml index 385be825b..fa1d98cc5 100644 --- a/.github/workflows/sync_class_ref.yml +++ b/.github/workflows/sync_class_ref.yml @@ -10,6 +10,9 @@ concurrency: jobs: build: + # Don't run scheduled runs on forks unless the CI_SYNC_CLASS_REF_CRON variable is set to 'true'. + # Manual runs can still be triggered as normal. + if: ${{ github.repository_owner == 'godotengine' || github.event_name != 'schedule' || vars.CI_SYNC_CLASS_REF_CRON == 'true' }} name: Update class reference files based on the engine revision runs-on: ubuntu-latest env: