chore: update Google Cloud actions (#22839)

These actions use Node 20 instead of 16 (which is deprecated).
This commit is contained in:
Asher Gomez 2024-03-21 04:40:29 +11:00 committed by GitHub
parent 9593cf2852
commit 2ce645137a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 9 deletions

View file

@ -203,7 +203,7 @@ const installDenoStep = {
const authenticateWithGoogleCloud = { const authenticateWithGoogleCloud = {
name: "Authenticate with Google Cloud", name: "Authenticate with Google Cloud",
uses: "google-github-actions/auth@v1", uses: "google-github-actions/auth@v2",
with: { with: {
"project_id": "denoland", "project_id": "denoland",
"credentials_json": "${{ secrets.GCP_SA_KEY }}", "credentials_json": "${{ secrets.GCP_SA_KEY }}",
@ -510,7 +510,7 @@ const ci = {
"(github.ref == 'refs/heads/main' ||", "(github.ref == 'refs/heads/main' ||",
"startsWith(github.ref, 'refs/tags/'))", "startsWith(github.ref, 'refs/tags/'))",
].join("\n"), ].join("\n"),
uses: "google-github-actions/setup-gcloud@v1", uses: "google-github-actions/setup-gcloud@v2",
with: { with: {
project_id: "denoland", project_id: "denoland",
}, },
@ -525,7 +525,7 @@ const ci = {
"(github.ref == 'refs/heads/main' ||", "(github.ref == 'refs/heads/main' ||",
"startsWith(github.ref, 'refs/tags/'))", "startsWith(github.ref, 'refs/tags/'))",
].join("\n"), ].join("\n"),
uses: "google-github-actions/setup-gcloud@v1", uses: "google-github-actions/setup-gcloud@v2",
env: { env: {
CLOUDSDK_PYTHON: "${{env.pythonLocation}}\\python.exe", CLOUDSDK_PYTHON: "${{env.pythonLocation}}\\python.exe",
}, },
@ -1061,7 +1061,7 @@ const ci = {
authenticateWithGoogleCloud, authenticateWithGoogleCloud,
{ {
name: "Setup gcloud", name: "Setup gcloud",
uses: "google-github-actions/setup-gcloud@v1", uses: "google-github-actions/setup-gcloud@v2",
with: { with: {
project_id: "denoland", project_id: "denoland",
}, },

View file

@ -209,7 +209,7 @@ jobs:
(github.ref == 'refs/heads/main' || (github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/tags/'))) startsWith(github.ref, 'refs/tags/')))
name: Authenticate with Google Cloud name: Authenticate with Google Cloud
uses: google-github-actions/auth@v1 uses: google-github-actions/auth@v2
with: with:
project_id: denoland project_id: denoland
credentials_json: '${{ secrets.GCP_SA_KEY }}' credentials_json: '${{ secrets.GCP_SA_KEY }}'
@ -223,7 +223,7 @@ jobs:
github.repository == 'denoland/deno' && github.repository == 'denoland/deno' &&
(github.ref == 'refs/heads/main' || (github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/tags/'))) startsWith(github.ref, 'refs/tags/')))
uses: google-github-actions/setup-gcloud@v1 uses: google-github-actions/setup-gcloud@v2
with: with:
project_id: denoland project_id: denoland
- name: Setup gcloud (windows) - name: Setup gcloud (windows)
@ -234,7 +234,7 @@ jobs:
github.repository == 'denoland/deno' && github.repository == 'denoland/deno' &&
(github.ref == 'refs/heads/main' || (github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/tags/'))) startsWith(github.ref, 'refs/tags/')))
uses: google-github-actions/setup-gcloud@v1 uses: google-github-actions/setup-gcloud@v2
env: env:
CLOUDSDK_PYTHON: '${{env.pythonLocation}}\python.exe' CLOUDSDK_PYTHON: '${{env.pythonLocation}}\python.exe'
with: with:
@ -672,14 +672,14 @@ jobs:
if: github.repository == 'denoland/deno' && github.ref == 'refs/heads/main' if: github.repository == 'denoland/deno' && github.ref == 'refs/heads/main'
steps: steps:
- name: Authenticate with Google Cloud - name: Authenticate with Google Cloud
uses: google-github-actions/auth@v1 uses: google-github-actions/auth@v2
with: with:
project_id: denoland project_id: denoland
credentials_json: '${{ secrets.GCP_SA_KEY }}' credentials_json: '${{ secrets.GCP_SA_KEY }}'
export_environment_variables: true export_environment_variables: true
create_credentials_file: true create_credentials_file: true
- name: Setup gcloud - name: Setup gcloud
uses: google-github-actions/setup-gcloud@v1 uses: google-github-actions/setup-gcloud@v2
with: with:
project_id: denoland project_id: denoland
- name: Upload canary version file to dl.deno.land - name: Upload canary version file to dl.deno.land