Auto merge of #13757 - naglis:docs-update-gh-checkout-action-version, r=epage

docs: update `checkout` GitHub action version

### What does this PR try to resolve?

This PR updates the GitHub CI examples in The Cargo Book to use the latest version of the `actions/checkout` GitHub action, since using `actions/checkout@v3` (currently used in the examples) produces warnings about deprecated Node.js 16 (see also [GitHub Actions: Transitioning from Node 16 to Node 20](https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/) blog post).

Also, v4 is already used in the "Verifying `rust-version`" example:

a9f86addbc/src/doc/src/guide/continuous-integration.md?plain=1#L174
This commit is contained in:
bors 2024-04-15 14:17:30 +00:00
commit d19d2bca88
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ jobs:
- beta
- nightly
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose
@ -147,7 +147,7 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: cargo update --verbose
- run: cargo build --verbose