12
12
13
13
jobs :
14
14
pod-lib-lint :
15
- # Don't run on private repo unless it is a PR.
16
- if : github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
17
-
15
+ if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
18
16
runs-on : macOS-latest
19
17
env :
20
18
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -31,12 +29,10 @@ jobs:
31
29
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/MLModelDownloader/GoogleService-Info.plist.gpg \
32
30
FirebaseMLModelDownloader/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret"
33
31
- name : Build and test
34
- run : scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMLModelDownloader.podspec --platforms=${{ matrix.target }}
32
+ run : ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMLModelDownloader.podspec --platforms=${{ matrix.target }})
35
33
36
34
mlmodeldownloader-cron-only :
37
- # Don't run on private repo.
38
- if : github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
39
-
35
+ if : github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
40
36
runs-on : macos-latest
41
37
env :
42
38
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
57
53
run : scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMLModelDownloader.podspec --platforms=${{ matrix.target }} --use-static-frameworks
58
54
59
55
spm :
60
- # Don't run on private repo unless it is a PR.
61
- if : github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
56
+ if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
62
57
runs-on : macOS-latest
63
58
steps :
64
59
- uses : actions/checkout@v2
71
66
72
67
spm-cron :
73
68
# Don't run on private repo.
74
- if : github.event_name == 'schedule' && github.repository != 'FirebasePrivate /firebase-ios-sdk'
69
+ if : github.event_name == 'schedule' && github.repository == 'Firebase /firebase-ios-sdk'
75
70
runs-on : macOS-latest
76
71
strategy :
77
72
matrix :
86
81
run : scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseMLModelDownloaderUnit ${{ matrix.target }} spm
87
82
88
83
catalyst :
89
- # Don't run on private repo unless it is a PR.
90
- if : github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
84
+ if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
91
85
runs-on : macOS-latest
92
86
steps :
93
87
- uses : actions/checkout@v2
98
92
99
93
mlmodeldownloader-sample-build-test :
100
94
# Don't run on private repo unless it is a PR.
101
- if : ( github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
95
+ if : github.repository == 'Firebase/firebase-ios-sdk' && ( github.event_name == 'schedule' || github.event_name == 'pull_request')
102
96
env :
103
97
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
104
98
runs-on : macos-latest
0 commit comments