Skip to content

Commit

Permalink
fix: Add check for existing GCP authentication before revoking
Browse files Browse the repository at this point in the history
  • Loading branch information
Seokyoung-Hong authored Feb 2, 2025
1 parent 60e656c commit bbe040c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/GCE_CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ jobs:

- name: Clean up GCP authentication files
run: |
gcloud auth revoke --all
if gcloud auth list --format="value(account)" | grep -q '@'; then
gcloud auth revoke --all
fi
rm -f ~/.config/gcloud/application_default_credentials.json
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1
with:
Expand Down

0 comments on commit bbe040c

Please sign in to comment.