From 95b6e9d1629ff42762df4ce51b26dc014d5db218 Mon Sep 17 00:00:00 2001 From: robertlincecum Date: Fri, 1 Mar 2024 16:16:15 -0600 Subject: [PATCH] don't setup cloud if not cloud --- .github/workflows/build-deploy-elixir.yml | 2 ++ .github/workflows/build-deploy-go.yml | 2 ++ .github/workflows/build-deploy-js.yml | 2 ++ .github/workflows/build-deploy-ts.yml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/.github/workflows/build-deploy-elixir.yml b/.github/workflows/build-deploy-elixir.yml index 1b20187..d594d2f 100644 --- a/.github/workflows/build-deploy-elixir.yml +++ b/.github/workflows/build-deploy-elixir.yml @@ -115,11 +115,13 @@ jobs: ssh-key: ${{ secrets.GH_PAT }} - name: Authenticate to Google Cloud + if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }} uses: google-github-actions/auth@v0.4.0 # Use the latest version available with: credentials_json: ${{ secrets.GH_GCP_TOKEN }} - name: Setup Cloud SDK + if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }} uses: google-github-actions/setup-gcloud@v2.0.0 - name: Access Secret from Secret Manager diff --git a/.github/workflows/build-deploy-go.yml b/.github/workflows/build-deploy-go.yml index 9c99670..b6bf34b 100644 --- a/.github/workflows/build-deploy-go.yml +++ b/.github/workflows/build-deploy-go.yml @@ -235,11 +235,13 @@ jobs: # git config --global user.signingkey $GPG_KEY_ID - name: Authenticate to Google Cloud + if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }} uses: google-github-actions/auth@v0.4.0 # Use the latest version available with: credentials_json: ${{ secrets.GH_GCP_TOKEN }} - name: Setup Cloud SDK + if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }} uses: google-github-actions/setup-gcloud@v2.0.0 - name: Access Secret from Secret Manager diff --git a/.github/workflows/build-deploy-js.yml b/.github/workflows/build-deploy-js.yml index df52473..bd60679 100644 --- a/.github/workflows/build-deploy-js.yml +++ b/.github/workflows/build-deploy-js.yml @@ -212,11 +212,13 @@ jobs: ssh-key: ${{ secrets.GH_PAT }} - name: Authenticate to Google Cloud + if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }} uses: google-github-actions/auth@v0.4.0 # Use the latest version available with: credentials_json: ${{ secrets.GH_GCP_TOKEN }} - name: Setup Cloud SDK + if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }} uses: google-github-actions/setup-gcloud@v2.0.0 - name: Access Secret from Secret Manager diff --git a/.github/workflows/build-deploy-ts.yml b/.github/workflows/build-deploy-ts.yml index 66900ca..06dc7ca 100644 --- a/.github/workflows/build-deploy-ts.yml +++ b/.github/workflows/build-deploy-ts.yml @@ -212,11 +212,13 @@ jobs: ssh-key: ${{ secrets.GH_PAT }} - name: Authenticate to Google Cloud + if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }} uses: google-github-actions/auth@v0.4.0 # Use the latest version available with: credentials_json: ${{ secrets.GH_GCP_TOKEN }} - name: Setup Cloud SDK + if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }} uses: google-github-actions/setup-gcloud@v2.0.0 - name: Access Secret from Secret Manager