Skip to content

Commit 4045689

Browse files
authored
Fix zip qs test build regression (#8132)
1 parent 1742de0 commit 4045689

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

.github/workflows/zip.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: zip
33
on:
44
pull_request:
55
paths:
6-
- 'ReleaseTooling/**'
6+
- 'ReleaseTooling/Sources/**'
77
- '.github/workflows/zip.yml'
88
- 'scripts/build_non_firebase_sdks.sh'
99
- 'Gemfile*'
@@ -23,7 +23,7 @@ on:
2323
jobs:
2424
package-release:
2525
# Don't run on private repo.
26-
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
26+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
2727
runs-on: macOS-latest
2828
steps:
2929
- uses: actions/checkout@v2
@@ -59,7 +59,7 @@ jobs:
5959
6060
package-head:
6161
# Don't run on private repo.
62-
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
62+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
6363
needs: build
6464
runs-on: macOS-latest
6565
steps:
@@ -83,7 +83,7 @@ jobs:
8383

8484
quickstart_framework_abtesting:
8585
# Don't run on private repo.
86-
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
86+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
8787
needs: package-head
8888
env:
8989
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -100,7 +100,7 @@ jobs:
100100
- name: Move frameworks
101101
run: |
102102
mkdir -p "${HOME}"/ios_frameworks/
103-
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "*.zip" -maxdepth 3 -exec unzip -d "${HOME}"/ios_frameworks/ {} +
103+
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
104104
- name: Setup quickstart
105105
run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
106106
"${HOME}"/ios_frameworks/Firebase/FirebaseRemoteConfig/* \
@@ -127,7 +127,7 @@ jobs:
127127

128128
quickstart_framework_auth:
129129
# Don't run on private repo.
130-
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
130+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
131131
needs: package-head
132132
env:
133133
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -144,7 +144,7 @@ jobs:
144144
- name: Move frameworks
145145
run: |
146146
mkdir -p "${HOME}"/ios_frameworks/
147-
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "*.zip" -maxdepth 3 -exec unzip -d "${HOME}"/ios_frameworks/ {} +
147+
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
148148
- name: Setup Swift Quickstart
149149
run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="FBSDKLoginKit FBSDKCoreKit" scripts/setup_quickstart_framework.sh \
150150
"${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
@@ -171,7 +171,7 @@ jobs:
171171

172172
quickstart_framework_config:
173173
# Don't run on private repo.
174-
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
174+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
175175
needs: package-head
176176
env:
177177
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -188,7 +188,7 @@ jobs:
188188
- name: Move frameworks
189189
run: |
190190
mkdir -p "${HOME}"/ios_frameworks/
191-
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "*.zip" -maxdepth 3 -exec unzip -d "${HOME}"/ios_frameworks/ {} +
191+
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
192192
- name: Setup Swift Quickstart
193193
run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
194194
"${HOME}"/ios_frameworks/Firebase/FirebaseRemoteConfig/* \
@@ -212,7 +212,7 @@ jobs:
212212

213213
quickstart_framework_crashlytics:
214214
# Don't run on private repo.
215-
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
215+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
216216
needs: package-head
217217
env:
218218
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -229,7 +229,7 @@ jobs:
229229
- name: Move frameworks
230230
run: |
231231
mkdir -p "${HOME}"/ios_frameworks/
232-
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "*.zip" -maxdepth 3 -exec unzip -d "${HOME}"/ios_frameworks/ {} +
232+
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
233233
- name: Setup quickstart
234234
run: |
235235
SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
@@ -265,7 +265,7 @@ jobs:
265265

266266
quickstart_framework_database:
267267
# Don't run on private repo.
268-
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
268+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
269269
needs: package-head
270270
env:
271271
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -282,7 +282,7 @@ jobs:
282282
- name: Move frameworks
283283
run: |
284284
mkdir -p "${HOME}"/ios_frameworks/
285-
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "*.zip" -maxdepth 3 -exec unzip -d "${HOME}"/ios_frameworks/ {} +
285+
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
286286
- name: Setup quickstart
287287
run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="FirebaseUI/Database" scripts/setup_quickstart_framework.sh \
288288
"${HOME}"/ios_frameworks/Firebase/FirebaseDatabase/* \
@@ -310,7 +310,7 @@ jobs:
310310

311311
quickstart_framework_dynamiclinks:
312312
# Don't run on private repo.
313-
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
313+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
314314
needs: package-head
315315
env:
316316
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -327,7 +327,7 @@ jobs:
327327
- name: Move frameworks
328328
run: |
329329
mkdir -p "${HOME}"/ios_frameworks/
330-
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "*.zip" -maxdepth 3 -exec unzip -d "${HOME}"/ios_frameworks/ {} +
330+
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
331331
- name: Setup Objc Quickstart
332332
run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
333333
"${HOME}"/ios_frameworks/Firebase/FirebaseDynamicLinks/* \
@@ -360,7 +360,7 @@ jobs:
360360

361361
quickstart_framework_firestore:
362362
# Don't run on private repo.
363-
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
363+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
364364
needs: package-head
365365
env:
366366
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -377,7 +377,7 @@ jobs:
377377
- name: Move frameworks
378378
run: |
379379
mkdir -p "${HOME}"/ios_frameworks/
380-
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "*.zip" -maxdepth 3 -exec unzip -d "${HOME}"/ios_frameworks/ {} +
380+
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
381381
- name: Setup quickstart
382382
run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="SDWebImage FirebaseUI/Auth FirebaseUI/Email FirebaseFirestoreSwift" scripts/setup_quickstart_framework.sh \
383383
"${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
@@ -403,7 +403,7 @@ jobs:
403403

404404
quickstart_framework_inappmessaging:
405405
# Don't run on private repo.
406-
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
406+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
407407
needs: package-head
408408
env:
409409
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -420,7 +420,7 @@ jobs:
420420
- name: Move frameworks
421421
run: |
422422
mkdir -p "${HOME}"/ios_frameworks/
423-
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "*.zip" -maxdepth 3 -exec unzip -d "${HOME}"/ios_frameworks/ {} +
423+
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
424424
- name: Setup quickstart
425425
run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
426426
"${HOME}"/ios_frameworks/Firebase/FirebaseDynamicLinks/* \
@@ -449,7 +449,7 @@ jobs:
449449

450450
quickstart_framework_messaging:
451451
# Don't run on private repo.
452-
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
452+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
453453
needs: package-head
454454
env:
455455
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -466,7 +466,7 @@ jobs:
466466
- name: Move frameworks
467467
run: |
468468
mkdir -p "${HOME}"/ios_frameworks/
469-
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "*.zip" -maxdepth 3 -exec unzip -d "${HOME}"/ios_frameworks/ {} +
469+
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
470470
- name: Setup quickstart
471471
run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
472472
"${HOME}"/ios_frameworks/Firebase/FirebaseMessaging/* \
@@ -494,7 +494,7 @@ jobs:
494494

495495
quickstart_framework_storage:
496496
# Don't run on private repo.
497-
if: (github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk') || github.event_name == 'workflow_dispatch'
497+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
498498
needs: package-head
499499
env:
500500
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -511,7 +511,7 @@ jobs:
511511
- name: Move frameworks
512512
run: |
513513
mkdir -p "${HOME}"/ios_frameworks/
514-
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "*.zip" -maxdepth 3 -exec unzip -d "${HOME}"/ios_frameworks/ {} +
514+
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
515515
- name: Setup quickstart
516516
run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
517517
"${HOME}"/ios_frameworks/Firebase/FirebaseStorage/* \

0 commit comments

Comments
 (0)