From 2ce645137a6539411dad8d9fe359bc651b215ba5 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 21 Mar 2024 04:40:29 +1100 Subject: [PATCH] chore: update Google Cloud actions (#22839) These actions use Node 20 instead of 16 (which is deprecated). --- .github/workflows/ci.generate.ts | 8 ++++---- .github/workflows/ci.yml | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts index a19c8abc02..948096c639 100755 --- a/.github/workflows/ci.generate.ts +++ b/.github/workflows/ci.generate.ts @@ -203,7 +203,7 @@ const installDenoStep = { const authenticateWithGoogleCloud = { name: "Authenticate with Google Cloud", - uses: "google-github-actions/auth@v1", + uses: "google-github-actions/auth@v2", with: { "project_id": "denoland", "credentials_json": "${{ secrets.GCP_SA_KEY }}", @@ -510,7 +510,7 @@ const ci = { "(github.ref == 'refs/heads/main' ||", "startsWith(github.ref, 'refs/tags/'))", ].join("\n"), - uses: "google-github-actions/setup-gcloud@v1", + uses: "google-github-actions/setup-gcloud@v2", with: { project_id: "denoland", }, @@ -525,7 +525,7 @@ const ci = { "(github.ref == 'refs/heads/main' ||", "startsWith(github.ref, 'refs/tags/'))", ].join("\n"), - uses: "google-github-actions/setup-gcloud@v1", + uses: "google-github-actions/setup-gcloud@v2", env: { CLOUDSDK_PYTHON: "${{env.pythonLocation}}\\python.exe", }, @@ -1061,7 +1061,7 @@ const ci = { authenticateWithGoogleCloud, { name: "Setup gcloud", - uses: "google-github-actions/setup-gcloud@v1", + uses: "google-github-actions/setup-gcloud@v2", with: { project_id: "denoland", }, diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4426fb4b66..87b8d7dfdf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -209,7 +209,7 @@ jobs: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))) name: Authenticate with Google Cloud - uses: google-github-actions/auth@v1 + uses: google-github-actions/auth@v2 with: project_id: denoland credentials_json: '${{ secrets.GCP_SA_KEY }}' @@ -223,7 +223,7 @@ jobs: github.repository == 'denoland/deno' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))) - uses: google-github-actions/setup-gcloud@v1 + uses: google-github-actions/setup-gcloud@v2 with: project_id: denoland - name: Setup gcloud (windows) @@ -234,7 +234,7 @@ jobs: github.repository == 'denoland/deno' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))) - uses: google-github-actions/setup-gcloud@v1 + uses: google-github-actions/setup-gcloud@v2 env: CLOUDSDK_PYTHON: '${{env.pythonLocation}}\python.exe' with: @@ -672,14 +672,14 @@ jobs: if: github.repository == 'denoland/deno' && github.ref == 'refs/heads/main' steps: - name: Authenticate with Google Cloud - uses: google-github-actions/auth@v1 + uses: google-github-actions/auth@v2 with: project_id: denoland credentials_json: '${{ secrets.GCP_SA_KEY }}' export_environment_variables: true create_credentials_file: true - name: Setup gcloud - uses: google-github-actions/setup-gcloud@v1 + uses: google-github-actions/setup-gcloud@v2 with: project_id: denoland - name: Upload canary version file to dl.deno.land