File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -192,11 +192,18 @@ 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 : |-
201
+ prev_step_success="${{ steps.gcloud-auth.outcome }}"
202
+ if [[ "$prev_step_success" != "success" ]]; then
203
+ echo "is_up=false" >> $GITHUB_OUTPUT
204
+ exit 0
205
+ fi
206
+
200
207
clusters="$(gcloud container clusters list)"
201
208
is_up="$(echo $clusters | grep ${{ secrets.GKE_CLUSTER }})"
202
209
if [[ -z "$is_up" ]]; then
You can’t perform that action at this time.
0 commit comments