Skip to content

Commit 3aa11b7

Browse files
authored
Merge pull request #10208 from mhilbrunner/gh-actions-skip-on-forks-by-default
CI: Skip class reference sync and offline docs on forks
2 parents 8db5923 + b496e1e commit 3aa11b7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build_offline_docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88

99
jobs:
1010
build:
11+
# Don't run scheduled runs on forks unless the CI_OFFLINE_DOCS_CRON variable is set to 'true'.
12+
# Manual runs can still be triggered as normal.
13+
if: ${{ github.repository_owner == 'godotengine' || github.event_name != 'schedule' || vars.CI_OFFLINE_DOCS_CRON == 'true' }}
1114
runs-on: ubuntu-22.04
1215
strategy:
1316
matrix:

.github/workflows/sync_class_ref.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ concurrency:
1515

1616
jobs:
1717
build:
18+
# Don't run scheduled runs on forks unless the CI_SYNC_CLASS_REF_CRON variable is set to 'true'.
19+
# Manual runs can still be triggered as normal.
20+
if: ${{ github.repository_owner == 'godotengine' || github.event_name != 'schedule' || vars.CI_SYNC_CLASS_REF_CRON == 'true' }}
1821
name: Update class reference files based on the engine revision
1922
runs-on: ubuntu-latest
2023
env:

0 commit comments

Comments
 (0)