Auto merge of #29153 - striezel-stash:actions-checkout-update, r=jdm

Update actions/checkout in GitHub Actions workflows to v3

Updates the `actions/checkout` action used in the GitHub Actions workflow to its newest major version.

Changes in [actions/checkout](https://github.com/actions/checkout):

> ## v3.1.0
> - Use @actions/core `saveState` and `getState`
> - Add `github-server-url` input
>
> ## v3.0.2
> - Add input `set-safe-directory`
>
> ## v3.0.1
> - Fixed an issue where checkout failed to run in container jobs due to the new git setting `safe.directory`
> - Bumped various npm package versions
>
> ## v3.0.0
>
> - Update to node 16

Still using v2 of `actions/checkout` will generate some warning like in this run: https://github.com/servo/servo/actions/runs/3718806495

> Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/checkout@v2, actions/upload-artifact@v2

The PR will get rid of those warnings for `actions/checkout`, because v3 uses Node.js 16.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they only update components used in the CI workflows and those workflows still passing is enough test.
This commit is contained in:
bors-servo 2022-12-17 21:09:34 -05:00 committed by GitHub
commit 3b5291379c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 17 deletions

View file

@ -10,7 +10,7 @@ jobs:
name: Upload docs to GitHub Pages name: Upload docs to GitHub Pages
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
- name: Bootstrap - name: Bootstrap

View file

@ -20,7 +20,7 @@ jobs:
- name: Branch check - name: Branch check
if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-windows', github.ref) }} if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-windows', github.ref) }}
run: exit 0 run: exit 0
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
- name: Copy to C drive - name: Copy to C drive
@ -47,7 +47,7 @@ jobs:
- name: Branch check - name: Branch check
if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-windows', github.ref) }} if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-windows', github.ref) }}
run: exit 0 run: exit 0
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
- name: Copy to C drive - name: Copy to C drive
@ -75,7 +75,7 @@ jobs:
- name: Branch check - name: Branch check
if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-windows', github.ref) }} if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-windows', github.ref) }}
run: exit 0 run: exit 0
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
- name: Copy to C drive - name: Copy to C drive
@ -101,7 +101,7 @@ jobs:
- name: Branch check - name: Branch check
if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-mac', github.ref) }} if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-mac', github.ref) }}
run: exit 0 run: exit 0
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
# TODO: Remove this step when the compatibility issue between mozjs and # TODO: Remove this step when the compatibility issue between mozjs and
@ -153,7 +153,7 @@ jobs:
# matrix: # matrix:
# chunk_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] # chunk_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
# steps: # steps:
# - uses: actions/checkout@v2 # - uses: actions/checkout@v3
# with: # with:
# fetch-depth: 2 # fetch-depth: 2
# #
@ -205,7 +205,7 @@ jobs:
- name: Branch check - name: Branch check
if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-linux refs/heads/try-wpt', github.ref) }} if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-linux refs/heads/try-wpt', github.ref) }}
run: exit 0 run: exit 0
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
- name: Bootstrap - name: Bootstrap
@ -241,7 +241,7 @@ jobs:
- name: Branch check - name: Branch check
if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-wpt', github.ref) }} if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-wpt', github.ref) }}
run: exit 0 run: exit 0
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3

View file

@ -15,7 +15,7 @@ jobs:
name: Build (Linux) + rustc nightly name: Build (Linux) + rustc nightly
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
- name: Update rustc - name: Update rustc

View file

@ -15,7 +15,7 @@ jobs:
name: Upload nightly (Linux) name: Upload nightly (Linux)
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
- name: Bootstrap - name: Bootstrap
@ -36,7 +36,7 @@ jobs:
name: Upload nightly (macOS) name: Upload nightly (macOS)
runs-on: macos-12 runs-on: macos-12
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
# TODO: Remove this step when the compatibility issue between mozjs and # TODO: Remove this step when the compatibility issue between mozjs and
@ -77,7 +77,7 @@ jobs:
name: Upload nightly (Windows) name: Upload nightly (Windows)
runs-on: windows-2019 runs-on: windows-2019
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
- name: Copy to C drive - name: Copy to C drive
@ -116,7 +116,7 @@ jobs:
name: Upload nightly (UWP) name: Upload nightly (UWP)
runs-on: windows-2019 runs-on: windows-2019
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
- name: Copy to C drive - name: Copy to C drive

View file

@ -12,7 +12,7 @@ jobs:
name: Build (Linux) name: Build (Linux)
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
- name: Bootstrap - name: Bootstrap

View file

@ -13,7 +13,7 @@ jobs:
name: Build on Linux name: Build on Linux
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
- name: Bootstrap - name: Bootstrap
@ -45,7 +45,7 @@ jobs:
matrix: matrix:
chunk_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] chunk_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
@ -91,7 +91,7 @@ jobs:
- "linux-wpt" - "linux-wpt"
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 2 fetch-depth: 2
# Download all artifacts # Download all artifacts