Update actions/checkout to v3 (#148)

* chore: update actions/checkout to v3

Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>

* chore: update docs to actions/checkout@v3

Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
This commit is contained in:
Koichi Shiraishi 2022-03-09 00:18:30 +09:00 committed by GitHub
parent 8d936a3c13
commit db6919d074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 15 deletions

View File

@ -12,7 +12,7 @@ jobs:
build: build:
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
steps: steps:
- uses: 'actions/checkout@v2' - uses: 'actions/checkout@v3'
- uses: 'actions/setup-node@v2' - uses: 'actions/setup-node@v2'
with: with:

View File

@ -19,7 +19,7 @@ jobs:
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
steps: steps:
- uses: 'actions/checkout@v2' - uses: 'actions/checkout@v3'
- uses: 'actions/setup-node@v2' - uses: 'actions/setup-node@v2'
with: with:
@ -48,7 +48,7 @@ jobs:
- 'macos-latest' - 'macos-latest'
steps: steps:
- uses: 'actions/checkout@v2' - uses: 'actions/checkout@v3'
- uses: 'actions/setup-node@v2' - uses: 'actions/setup-node@v2'
with: with:
@ -116,7 +116,7 @@ jobs:
id-token: 'write' id-token: 'write'
steps: steps:
- uses: 'actions/checkout@v2' - uses: 'actions/checkout@v3'
- uses: 'actions/setup-node@v2' - uses: 'actions/setup-node@v2'
with: with:
@ -181,7 +181,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
steps: steps:
- uses: 'actions/checkout@v2' - uses: 'actions/checkout@v3'
- uses: 'actions/setup-node@v2' - uses: 'actions/setup-node@v2'
with: with:

View File

@ -32,7 +32,7 @@ and permissions on Google Cloud.
configure a Google Cloud Workload Identity Provider. See [setup](#setup) configure a Google Cloud Workload Identity Provider. See [setup](#setup)
for instructions. for instructions.
- You must run the `actions/checkout@v2` step _before_ this action. Omitting - You must run the `actions/checkout@v3` step _before_ this action. Omitting
the checkout step or putting it after `auth` will cause future steps to be the checkout step or putting it after `auth` will cause future steps to be
unable to authenticate. unable to authenticate.
@ -60,7 +60,7 @@ jobs:
steps: steps:
# actions/checkout MUST come before auth # actions/checkout MUST come before auth
- uses: 'actions/checkout@v2' - uses: 'actions/checkout@v3'
- id: 'auth' - id: 'auth'
name: 'Authenticate to Google Cloud' name: 'Authenticate to Google Cloud'
@ -201,7 +201,7 @@ regardless of the authentication mechanism.
jobs: jobs:
job_id: job_id:
steps: steps:
- uses: 'actions/checkout@v2' # Must come first! - uses: 'actions/checkout@v3' # Must come first!
- uses: 'google-github-actions/auth@v0' - uses: 'google-github-actions/auth@v0'
``` ```
@ -249,7 +249,7 @@ jobs:
id-token: 'write' id-token: 'write'
steps: steps:
- uses: 'actions/checkout@v2' - uses: 'actions/checkout@v3'
- id: 'auth' - id: 'auth'
name: 'Authenticate to Google Cloud' name: 'Authenticate to Google Cloud'
@ -277,7 +277,7 @@ jobs:
# ... # ...
steps: steps:
- uses: 'actions/checkout@v2' - uses: 'actions/checkout@v3'
- id: 'auth' - id: 'auth'
name: 'Authenticate to Google Cloud' name: 'Authenticate to Google Cloud'
@ -303,7 +303,7 @@ examples:
jobs: jobs:
job_id: job_id:
steps: steps:
- uses: 'actions/checkout@v2' - uses: 'actions/checkout@v3'
- id: 'auth' - id: 'auth'
name: 'Authenticate to Google Cloud' name: 'Authenticate to Google Cloud'
@ -349,7 +349,7 @@ jobs:
id-token: 'write' id-token: 'write'
steps: steps:
- uses: 'actions/checkout@v2' - uses: 'actions/checkout@v3'
# Configure Workload Identity Federation via a credentials file. # Configure Workload Identity Federation via a credentials file.
- id: 'auth' - id: 'auth'
@ -393,7 +393,7 @@ jobs:
id-token: 'write' id-token: 'write'
steps: steps:
- uses: 'actions/checkout@v2' - uses: 'actions/checkout@v3'
# Configure Workload Identity Federation and generate an access token. # Configure Workload Identity Federation and generate an access token.
- id: 'auth' - id: 'auth'
@ -433,7 +433,7 @@ jobs:
id-token: 'write' id-token: 'write'
steps: steps:
- uses: 'actions/checkout@v2' - uses: 'actions/checkout@v3'
# Configure Workload Identity Federation and generate an access token. # Configure Workload Identity Federation and generate an access token.
- id: 'auth' - id: 'auth'

View File

@ -21,7 +21,7 @@ further debug:
1. Look at the [debug logs][debug-logs] to see exactly which step is failing. 1. Look at the [debug logs][debug-logs] to see exactly which step is failing.
Ensure you are using the latest version of that GitHub Action. Ensure you are using the latest version of that GitHub Action.
1. Make sure you use `actions/checkout@v2` **before** the `auth` action in your 1. Make sure you use `actions/checkout@v3` **before** the `auth` action in your
workflow. workflow.
1. If the failing action is from `google-github-action/*`, please file an issue 1. If the failing action is from `google-github-action/*`, please file an issue