Skip to content

Commit 9fdf818

Browse files
authored
Fixes for GHA from a forked repo (#5524)
1 parent df36792 commit 9fdf818

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/firestore.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ jobs:
155155
--allow-warnings
156156
157157
quickstart:
158+
env:
159+
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
160+
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
158161
runs-on: macOS-latest
159162
needs: check
160163

@@ -163,14 +166,11 @@ jobs:
163166
- name: Setup quickstart
164167
run: scripts/setup_quickstart.sh firestore
165168
- name: Install Secret GoogleService-Info.plist
166-
env:
167-
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
168169
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-firestore.plist.gpg \
169170
quickstart-ios/firestore/GoogleService-Info.plist "$plist_secret"
170171
- name: Install Secret FIREGSignInInfo.h
171-
env:
172-
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
173172
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
174173
quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
175174
- name: Test quickstart
176-
run: scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Firestore
175+
run: ([ -z $plist_secret ] ||
176+
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Firestore)

.github/workflows/messaging.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,23 @@ jobs:
5757
run: scripts/test_catalyst.sh FirebaseMessaging build
5858

5959
quickstart:
60+
env:
61+
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
62+
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
6063
runs-on: macOS-latest
6164
steps:
6265
- uses: actions/checkout@v2
6366
- name: Setup quickstart
6467
run: scripts/setup_quickstart.sh messaging
6568
- name: Install Secret GoogleService-Info.plist
66-
env:
67-
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
6869
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
6970
quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
7071
- name: Install Secret FIREGSignInInfo.h
71-
env:
72-
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
7372
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
7473
quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
7574
- name: Test quickstart
76-
run: scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging
75+
run: ([ -z $plist_secret ] ||
76+
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging)
7777

7878
pod-lib-lint-watchos:
7979
runs-on: macOS-latest
@@ -136,4 +136,4 @@ jobs:
136136
- name: Prereqs
137137
run: scripts/install_prereqs.sh MessagingSample iOS
138138
- name: Build
139-
run: scripts/build.sh MessagingSample iOS
139+
run: ([ -z $plist_secret ] || scripts/build.sh MessagingSample iOS)

0 commit comments

Comments
 (0)