Skip to content

Commit e91c467

Browse files
davidmotsonDavid Motsonashvili
andauthored
CI Test Update (#7473)
Alters the CI test to only add the google-services.json file from secrets if the secret is present Co-authored-by: David Motsonashvili <davidmotson@google.com>
1 parent cb9e9c5 commit e91c467

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci_tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
- name: Add google-services.json
6565
env:
6666
INTEG_TESTS_GOOGLE_SERVICES: ${{ secrets.INTEG_TESTS_GOOGLE_SERVICES }}
67+
if: env.INTEG_TESTS_GOOGLE_SERVICES != '' && env.INTEG_TESTS_GOOGLE_SERVICES != 'null'
6768
run: |
6869
echo $INTEG_TESTS_GOOGLE_SERVICES | base64 -d > google-services.json
6970
@@ -129,6 +130,7 @@ jobs:
129130
- name: Add google-services.json
130131
env:
131132
INTEG_TESTS_GOOGLE_SERVICES: ${{ secrets.INTEG_TESTS_GOOGLE_SERVICES }}
133+
if: env.INTEG_TESTS_GOOGLE_SERVICES != '' && env.INTEG_TESTS_GOOGLE_SERVICES != 'null'
132134
run: |
133135
echo $INTEG_TESTS_GOOGLE_SERVICES | base64 -d > google-services.json
134136
- uses: google-github-actions/auth@71f986410dfbc7added4569d411d040a91dc6935 # v2.1.8

0 commit comments

Comments
 (0)