@@ -6,6 +6,11 @@ permissions:
6
6
actions : read
7
7
contents : read
8
8
9
+ env :
10
+ # When a run_id is specified, build jobs will be skipped and the specified
11
+ # run's artifacts will be used for testing.
12
+ PINNED_RUN_ID : ' 17965877651'
13
+
9
14
on :
10
15
pull_request :
11
16
paths :
44
49
if : |
45
50
github.repository == 'firebase/firebase-ios-sdk' &&
46
51
contains(fromJSON('["schedule", "pull_request", "workflow_dispatch"]'), github.event_name) &&
47
- github.event.inputs.zip_run_id == ''
52
+ github.event.inputs.zip_run_id == '' && github.env.PINNED_RUN_ID == ''
48
53
runs-on : macos-14
49
54
steps :
50
55
- uses : actions/checkout@v4
75
80
if : |
76
81
github.repository == 'firebase/firebase-ios-sdk' &&
77
82
contains(fromJSON('["schedule", "pull_request", "workflow_dispatch"]'), github.event_name) &&
78
- github.event.inputs.zip_run_id == ''
83
+ github.event.inputs.zip_run_id == '' && github.env.PINNED_RUN_ID == ''
79
84
runs-on : macos-14
80
85
steps :
81
86
- uses : actions/checkout@v4
@@ -119,7 +124,7 @@ jobs:
119
124
120
125
quickstart_framework_abtesting :
121
126
needs : package-head
122
- if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
127
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '' || github.env.PINNED_RUN_ID != '' ) }}
123
128
env :
124
129
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
125
130
SDK : " ABTesting"
@@ -136,7 +141,7 @@ jobs:
136
141
137
142
with :
138
143
name : ${{ matrix.artifact }}
139
- run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
144
+ run-id : ${{ github.event.inputs.zip_run_id || github.env.PINNED_RUN_ID != '' || github. run_id }}
140
145
github-token : ${{ secrets.GITHUB_TOKEN }}
141
146
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
142
147
- name : Xcode
@@ -172,7 +177,7 @@ jobs:
172
177
173
178
quickstart_framework_auth :
174
179
needs : package-head
175
- if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
180
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '' || github.env.PINNED_RUN_ID != '' ) }}
176
181
env :
177
182
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
178
183
SDK : " Authentication"
@@ -190,7 +195,7 @@ jobs:
190
195
191
196
with :
192
197
name : ${{ matrix.artifact }}
193
- run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
198
+ run-id : ${{ github.event.inputs.zip_run_id || github.env.PINNED_RUN_ID != '' || github. run_id }}
194
199
github-token : ${{ secrets.GITHUB_TOKEN }}
195
200
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
196
201
- name : Xcode
@@ -223,7 +228,7 @@ jobs:
223
228
224
229
quickstart_framework_config :
225
230
needs : package-head
226
- if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
231
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '' || github.env.PINNED_RUN_ID != '' ) }}
227
232
env :
228
233
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
229
234
SDK : " Config"
@@ -240,7 +245,7 @@ jobs:
240
245
241
246
with :
242
247
name : ${{ matrix.artifact }}
243
- run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
248
+ run-id : ${{ github.event.inputs.zip_run_id || github.env.PINNED_RUN_ID != '' || github. run_id }}
244
249
github-token : ${{ secrets.GITHUB_TOKEN }}
245
250
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
246
251
- name : Xcode
@@ -272,7 +277,7 @@ jobs:
272
277
273
278
quickstart_framework_crashlytics :
274
279
needs : package-head
275
- if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
280
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '' || github.env.PINNED_RUN_ID != '' ) }}
276
281
env :
277
282
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
278
283
SDK : " Crashlytics"
@@ -289,7 +294,7 @@ jobs:
289
294
290
295
with :
291
296
name : ${{ matrix.artifact }}
292
- run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
297
+ run-id : ${{ github.event.inputs.zip_run_id || github.env.PINNED_RUN_ID != '' || github. run_id }}
293
298
github-token : ${{ secrets.GITHUB_TOKEN }}
294
299
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
295
300
- name : Xcode
@@ -338,7 +343,7 @@ jobs:
338
343
339
344
quickstart_framework_database :
340
345
needs : package-head
341
- if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
346
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '' || github.env.PINNED_RUN_ID != '' ) }}
342
347
env :
343
348
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
344
349
SDK : " Database"
@@ -354,7 +359,7 @@ jobs:
354
359
355
360
with :
356
361
name : ${{ matrix.artifact }}
357
- run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
362
+ run-id : ${{ github.event.inputs.zip_run_id || github.env.PINNED_RUN_ID != '' || github. run_id }}
358
363
github-token : ${{ secrets.GITHUB_TOKEN }}
359
364
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
360
365
- name : Xcode
@@ -390,7 +395,7 @@ jobs:
390
395
391
396
quickstart_framework_firestore :
392
397
needs : package-head
393
- if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
398
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '' || github.env.PINNED_RUN_ID != '' ) }}
394
399
env :
395
400
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
396
401
SDK : " Firestore"
@@ -407,7 +412,7 @@ jobs:
407
412
408
413
with :
409
414
name : ${{ matrix.artifact }}
410
- run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
415
+ run-id : ${{ github.event.inputs.zip_run_id || github.env.PINNED_RUN_ID != '' || github. run_id }}
411
416
github-token : ${{ secrets.GITHUB_TOKEN }}
412
417
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
413
418
- name : Xcode
@@ -447,7 +452,7 @@ jobs:
447
452
448
453
check_framework_firestore_symbols :
449
454
needs : package-head
450
- if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
455
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '' || github.env.PINNED_RUN_ID != '' ) }}
451
456
env :
452
457
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT : 1
453
458
runs-on : macos-14
@@ -459,7 +464,7 @@ jobs:
459
464
460
465
with :
461
466
name : Firebase-actions-dir
462
- run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
467
+ run-id : ${{ github.event.inputs.zip_run_id || github.env.PINNED_RUN_ID != '' || github. run_id }}
463
468
github-token : ${{ secrets.GITHUB_TOKEN }}
464
469
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
465
470
- name : Setup Bundler
@@ -479,7 +484,7 @@ jobs:
479
484
480
485
quickstart_framework_inappmessaging :
481
486
needs : package-head
482
- if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
487
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '' || github.env.PINNED_RUN_ID != '' ) }}
483
488
env :
484
489
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
485
490
SDK : " InAppMessaging"
@@ -496,7 +501,7 @@ jobs:
496
501
497
502
with :
498
503
name : ${{ matrix.artifact }}
499
- run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
504
+ run-id : ${{ github.event.inputs.zip_run_id || github.env.PINNED_RUN_ID != '' || github. run_id }}
500
505
github-token : ${{ secrets.GITHUB_TOKEN }}
501
506
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
502
507
- name : Xcode
@@ -532,7 +537,7 @@ jobs:
532
537
533
538
quickstart_framework_messaging :
534
539
needs : package-head
535
- if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
540
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '' || github.env.PINNED_RUN_ID != '' ) }}
536
541
env :
537
542
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
538
543
SDK : " Messaging"
@@ -549,7 +554,7 @@ jobs:
549
554
550
555
with :
551
556
name : ${{ matrix.artifact }}
552
- run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
557
+ run-id : ${{ github.event.inputs.zip_run_id || github.env.PINNED_RUN_ID != '' || github. run_id }}
553
558
github-token : ${{ secrets.GITHUB_TOKEN }}
554
559
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
555
560
- name : Xcode
@@ -585,7 +590,7 @@ jobs:
585
590
586
591
quickstart_framework_storage :
587
592
needs : package-head
588
- if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
593
+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '' || github.env.PINNED_RUN_ID != '' ) }}
589
594
env :
590
595
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
591
596
SDK : " Storage"
@@ -602,7 +607,7 @@ jobs:
602
607
603
608
with :
604
609
name : ${{ matrix.artifact }}
605
- run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
610
+ run-id : ${{ github.event.inputs.zip_run_id || github.env.PINNED_RUN_ID != '' || github. run_id }}
606
611
github-token : ${{ secrets.GITHUB_TOKEN }}
607
612
- uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
608
613
- name : Xcode
0 commit comments