From 950f75bd369eb4ed74fee602e6d04ad2ea4c799d Mon Sep 17 00:00:00 2001 From: Seokyoung_Hong <88967942+Seokyoung-Hong@users.noreply.github.com> Date: Fri, 3 Jan 2025 00:26:45 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20GCE=5FCD.yml/Clean=20up=20GCP=20authenti?= =?UTF-8?q?cation=20files=20=EC=97=90=EB=9F=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - clean하게 할 GCP authentication file이 없을 경우 발생하는 에러를 해결합니다. --- .github/workflows/GCE_CD.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/GCE_CD.yml b/.github/workflows/GCE_CD.yml index db50a0c3..1082eeda 100644 --- a/.github/workflows/GCE_CD.yml +++ b/.github/workflows/GCE_CD.yml @@ -20,7 +20,9 @@ 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