@@ -133,16 +133,10 @@ jobs:
133133 run : |
134134 echo "version=staging-${GITHUB_RUN_NUMBER}-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
135135 - name : GCP authentication
136- if : ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER != '' && secrets.GCP_DEPLOY_SERVICE_ACCOUNT != '' }}
137136 uses : " google-github-actions/auth@v2"
138137 with :
139138 workload_identity_provider : " ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}"
140139 service_account : " ${{ secrets.GCP_DEPLOY_SERVICE_ACCOUNT }}"
141- - name : GCP authentication (fallback)
142- if : ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER == '' || secrets.GCP_DEPLOY_SERVICE_ACCOUNT == '' }}
143- uses : " google-github-actions/auth@v2"
144- with :
145- credentials_json : " ${{ secrets.GCP_SA_KEY }}"
146140 - name : Set up GCloud
147141 uses : " google-github-actions/setup-gcloud@v2"
148142 - name : Validate App Engine deployment configuration
@@ -249,16 +243,10 @@ jobs:
249243 run : |
250244 echo "version=prod-${GITHUB_RUN_NUMBER}-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
251245 - name : GCP authentication
252- if : ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER != '' && secrets.GCP_DEPLOY_SERVICE_ACCOUNT != '' }}
253246 uses : " google-github-actions/auth@v2"
254247 with :
255248 workload_identity_provider : " ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}"
256249 service_account : " ${{ secrets.GCP_DEPLOY_SERVICE_ACCOUNT }}"
257- - name : GCP authentication (fallback)
258- if : ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER == '' || secrets.GCP_DEPLOY_SERVICE_ACCOUNT == '' }}
259- uses : " google-github-actions/auth@v2"
260- with :
261- credentials_json : " ${{ secrets.GCP_SA_KEY }}"
262250 - name : Set up GCloud
263251 uses : " google-github-actions/setup-gcloud@v2"
264252 - name : Validate App Engine deployment configuration
0 commit comments