File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -192,17 +192,21 @@ jobs:
192
192
if : ${{ contains(github.ref, 'main') && github.event.pull_request.title != 'Feedback' }}
193
193
with :
194
194
credentials_json : ' ${{ secrets.GKE_CJSON }}'
195
+ continue-on-error : true
195
196
196
197
- name : Detect GKE Cluster
197
198
id : gcloud-detect-gke
198
199
if : ${{ contains(github.ref, 'main') && github.event.pull_request.title != 'Feedback' }}
199
200
run : |-
200
- clusters="$(gcloud container clusters list)"
201
- is_up="$(echo $clusters | grep ${{ secrets.GKE_CLUSTER }})"
202
- if [[ -z "$is_up" ]]; then
201
+ prev_step_success="${{ steps.gcloud-auth.outcome }}"
202
+ if [[ "$prev_step_success" != "success" ]]; then
203
203
echo "is_up=false" >> $GITHUB_OUTPUT
204
- else
205
- echo "is_up=true" >> $GITHUB_OUTPUT
204
+ else
205
+ if [[ -z "$(gcloud container clusters list | grep ${{ secrets.GKE_CLUSTER }})" ]]; then
206
+ echo "is_up=false" >> $GITHUB_OUTPUT
207
+ else
208
+ echo "is_up=true" >> $GITHUB_OUTPUT
209
+ fi
206
210
fi
207
211
208
212
- name : Get GKE creds
You can’t perform that action at this time.
0 commit comments