Skip to content

Commit f6271d8

Browse files
authored
Don't run scheduled GHA jobs on private repos (#9451)
1 parent 141be1a commit f6271d8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/app_check.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111

1212
jobs:
1313
pod_lib_lint:
14+
# Don't run on private repo unless it is a PR.
15+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
1416
runs-on: macos-11
1517
strategy:
1618
matrix:
@@ -59,8 +61,9 @@ jobs:
5961
path: xcodebuild.log
6062

6163
app_check-cron-only:
64+
# Don't run on private repo.
65+
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
6266
runs-on: macos-11
63-
if: github.event_name == 'schedule'
6467
strategy:
6568
matrix:
6669
flags: [

.github/workflows/check.yml

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

1010
jobs:
1111
check:
12+
# Don't run on private repo.
13+
if: github.repository == 'Firebase/firebase-ios-sdk'
1214
runs-on: macos-11
1315
env:
1416
MINT_PATH: ${{ github.workspace }}/mint

0 commit comments

Comments
 (0)