ソースを参照

Don't run scheduled GHA jobs on private repos (#9451)

Paul Beusterien 4 年 前
コミット
f6271d834a
2 ファイル変更6 行追加1 行削除
  1. 4 1
      .github/workflows/app_check.yml
  2. 2 0
      .github/workflows/check.yml

+ 4 - 1
.github/workflows/app_check.yml

@@ -11,6 +11,8 @@ on:
 
 jobs:
   pod_lib_lint:
+    # Don't run on private repo unless it is a PR.
+    if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
     runs-on: macos-11
     strategy:
       matrix:
@@ -59,8 +61,9 @@ jobs:
         path: xcodebuild.log
 
   app_check-cron-only:
+    # Don't run on private repo.
+    if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
     runs-on: macos-11
-    if: github.event_name == 'schedule'
     strategy:
       matrix:
         flags: [

+ 2 - 0
.github/workflows/check.yml

@@ -9,6 +9,8 @@ on:
 
 jobs:
   check:
+    # Don't run on private repo.
+    if: github.repository == 'Firebase/firebase-ios-sdk'
     runs-on: macos-11
     env:
       MINT_PATH: ${{ github.workspace }}/mint