1
1
name : zip
2
2
3
+ permissions :
4
+ actions : read
5
+ contents : read
6
+
3
7
on :
4
8
pull_request :
5
9
paths :
21
25
description : ' Custom Podspec repos'
22
26
required : true
23
27
default : ' https://github.com/firebase/SpecsStaging.git'
28
+ zip_run_id :
29
+ # For example, in the below URL, `17335533279` is the run ID:
30
+ # - https://github.com/firebase/firebase-ios-sdk/actions/runs/17335533279
31
+ description : ' Run ID of a previous successful zip workflow to use for quickstart testing'
32
+ required : false
33
+ default : ' '
24
34
25
35
concurrency :
26
36
group : ${{ github.workflow }}-${{ github.head_ref || github.ref }}
@@ -29,7 +39,10 @@ concurrency:
29
39
jobs :
30
40
package-release :
31
41
# Don't run on private repo.
32
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
42
+ if : |
43
+ github.repository == 'firebase/firebase-ios-sdk' &&
44
+ contains(fromJSON('["schedule", "pull_request", "workflow_dispatch"]'), github.event_name) &&
45
+ github.event.inputs.zip_run_id == ''
33
46
runs-on : macos-14
34
47
steps :
35
48
- uses : actions/checkout@v4
57
70
58
71
build :
59
72
# Don't run on private repo unless it is a PR.
60
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
73
+ if : |
74
+ github.repository == 'firebase/firebase-ios-sdk' &&
75
+ contains(fromJSON('["schedule", "pull_request", "workflow_dispatch"]'), github.event_name) &&
76
+ github.event.inputs.zip_run_id == ''
61
77
runs-on : macos-14
62
78
steps :
63
79
- uses : actions/checkout@v4
66
82
- name : Build
67
83
run : |
68
84
cd ReleaseTooling
69
- swift build -v
85
+ # swift build -v
70
86
71
87
package-head :
72
- # Don't run on private repo.
73
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
74
88
needs : build
75
89
strategy :
76
90
matrix :
@@ -102,9 +116,8 @@ jobs:
102
116
path : zip_output_dir
103
117
104
118
quickstart_framework_abtesting :
105
- # Don't run on private repo.
106
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
107
119
needs : package-head
120
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
108
121
env :
109
122
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
110
123
SDK : " ABTesting"
@@ -121,6 +134,8 @@ jobs:
121
134
122
135
with :
123
136
name : ${{ matrix.artifact }}
137
+ run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
138
+ github-token : ${{ secrets.GITHUB_TOKEN }}
124
139
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
125
140
- name : Xcode
126
141
run : sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
@@ -160,9 +175,8 @@ jobs:
160
175
path : quickstart-ios/
161
176
162
177
quickstart_framework_auth :
163
- # Don't run on private repo.
164
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
165
178
needs : package-head
179
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
166
180
env :
167
181
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
168
182
SDK : " Authentication"
@@ -180,6 +194,8 @@ jobs:
180
194
181
195
with :
182
196
name : ${{ matrix.artifact }}
197
+ run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
198
+ github-token : ${{ secrets.GITHUB_TOKEN }}
183
199
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
184
200
- name : Xcode
185
201
run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
@@ -210,9 +226,8 @@ jobs:
210
226
path : quickstart-ios/
211
227
212
228
quickstart_framework_config :
213
- # Don't run on private repo.
214
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
215
229
needs : package-head
230
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
216
231
env :
217
232
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
218
233
SDK : " Config"
@@ -229,6 +244,8 @@ jobs:
229
244
230
245
with :
231
246
name : ${{ matrix.artifact }}
247
+ run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
248
+ github-token : ${{ secrets.GITHUB_TOKEN }}
232
249
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
233
250
- name : Xcode
234
251
run : sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
@@ -258,9 +275,8 @@ jobs:
258
275
path : quickstart-ios/
259
276
260
277
quickstart_framework_crashlytics :
261
- # Don't run on private repo.
262
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
263
278
needs : package-head
279
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
264
280
env :
265
281
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
266
282
SDK : " Crashlytics"
@@ -277,6 +293,8 @@ jobs:
277
293
278
294
with :
279
295
name : ${{ matrix.artifact }}
296
+ run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
297
+ github-token : ${{ secrets.GITHUB_TOKEN }}
280
298
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
281
299
- name : Xcode
282
300
run : sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
@@ -329,9 +347,8 @@ jobs:
329
347
path : quickstart-ios/
330
348
331
349
quickstart_framework_database :
332
- # Don't run on private repo.
333
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
334
350
needs : package-head
351
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
335
352
env :
336
353
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
337
354
SDK : " Database"
@@ -347,6 +364,8 @@ jobs:
347
364
348
365
with :
349
366
name : ${{ matrix.artifact }}
367
+ run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
368
+ github-token : ${{ secrets.GITHUB_TOKEN }}
350
369
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
351
370
- name : Xcode
352
371
run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
@@ -380,9 +399,8 @@ jobs:
380
399
path : quickstart-ios/
381
400
382
401
quickstart_framework_firestore :
383
- # Don't run on private repo.
384
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
385
402
needs : package-head
403
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
386
404
env :
387
405
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
388
406
SDK : " Firestore"
@@ -399,6 +417,8 @@ jobs:
399
417
400
418
with :
401
419
name : ${{ matrix.artifact }}
420
+ run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
421
+ github-token : ${{ secrets.GITHUB_TOKEN }}
402
422
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
403
423
- name : Xcode
404
424
run : sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
@@ -436,9 +456,8 @@ jobs:
436
456
path : quickstart_artifacts_firestore.zip
437
457
438
458
check_framework_firestore_symbols :
439
- # Don't run on private repo.
440
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
441
459
needs : package-head
460
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
442
461
env :
443
462
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT : 1
444
463
runs-on : macos-14
@@ -450,6 +469,8 @@ jobs:
450
469
451
470
with :
452
471
name : Firebase-actions-dir
472
+ run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
473
+ github-token : ${{ secrets.GITHUB_TOKEN }}
453
474
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
454
475
- name : Setup Bundler
455
476
run : ./scripts/setup_bundler.sh
@@ -467,9 +488,8 @@ jobs:
467
488
"${HOME}"/ios_frameworks/Firebase/FirebaseFirestore/FirebaseFirestoreInternal.xcframework
468
489
469
490
quickstart_framework_inappmessaging :
470
- # Don't run on private repo.
471
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
472
491
needs : package-head
492
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
473
493
env :
474
494
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
475
495
SDK : " InAppMessaging"
@@ -486,6 +506,8 @@ jobs:
486
506
487
507
with :
488
508
name : ${{ matrix.artifact }}
509
+ run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
510
+ github-token : ${{ secrets.GITHUB_TOKEN }}
489
511
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
490
512
- name : Xcode
491
513
run : sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
@@ -519,9 +541,8 @@ jobs:
519
541
path : quickstart-ios/
520
542
521
543
quickstart_framework_messaging :
522
- # Don't run on private repo.
523
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
524
544
needs : package-head
545
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
525
546
env :
526
547
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
527
548
SDK : " Messaging"
@@ -538,6 +559,8 @@ jobs:
538
559
539
560
with :
540
561
name : ${{ matrix.artifact }}
562
+ run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
563
+ github-token : ${{ secrets.GITHUB_TOKEN }}
541
564
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
542
565
- name : Xcode
543
566
run : sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
@@ -571,9 +594,8 @@ jobs:
571
594
path : quickstart-ios/
572
595
573
596
quickstart_framework_storage :
574
- # Don't run on private repo.
575
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
576
597
needs : package-head
598
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
577
599
env :
578
600
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
579
601
SDK : " Storage"
@@ -590,6 +612,8 @@ jobs:
590
612
591
613
with :
592
614
name : ${{ matrix.artifact }}
615
+ run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
616
+ github-token : ${{ secrets.GITHUB_TOKEN }}
593
617
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
594
618
- name : Xcode
595
619
run : sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
0 commit comments