chore: Update actions/checkout to @v5 (#40606)

update all occurences (in `servo/.github`) to v5

Testing: None
Fixes: #40604

Signed-off-by: WaterWhisperer <waterwhisperer24@qq.com>
This commit is contained in:
WaterWhisperer
2025-11-13 22:00:19 +08:00
committed by GitHub
parent c19641e3fe
commit a6cc0ec0fe
14 changed files with 28 additions and 28 deletions

View File

@@ -51,13 +51,13 @@ jobs:
android: false
large-packages: false
swap-storage: false
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name != 'pull_request_target'
with:
fetch-depth: 2
# This is necessary to checkout the pull request if this run was triggered via a
# `pull_request_target` event.
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name == 'pull_request_target'
with:
ref: ${{ github.event.pull_request.head.sha }}

View File

@@ -12,7 +12,7 @@ jobs:
name: Upload docs to GitHub Pages
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:

View File

@@ -48,11 +48,11 @@ jobs:
matrix:
chunk_id: ${{ fromJson(needs.chunks.outputs.chunks-array) }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name != 'pull_request_target'
# This is necessary to checkout the pull request if this run was triggered via a
# `pull_request_target` event.
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name == 'pull_request_target'
with:
ref: refs/pull/${{ github.event.number }}/head
@@ -122,7 +122,7 @@ jobs:
name: wpt-filtered-logs-linux
pattern: wpt-filtered-logs-linux-*
delete-merged: true
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: ${{ !cancelled() && !inputs.wpt-sync-from-upstream }}
- uses: actions/download-artifact@v4
if: ${{ !cancelled() && !inputs.wpt-sync-from-upstream }}

View File

@@ -258,13 +258,13 @@ jobs:
name: Build libservo and MSRV check
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name != 'pull_request_target'
with:
fetch-depth: 1
# This is necessary to checkout the pull request if this run was triggered via a
# `pull_request_target` event.
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name == 'pull_request_target'
with:
ref: ${{ github.event.pull_request.head.sha }}

View File

@@ -93,11 +93,11 @@ jobs:
- name: Kill XProtectBehaviorService
run: |
echo Killing XProtect.; sudo pkill -9 XProtect >/dev/null || true;
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: runner.environment != 'self-hosted' && github.event_name != 'pull_request_target'
# This is necessary to checkout the pull request if this run was triggered via a
# `pull_request_target` event.
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: runner.environment != 'self-hosted' && github.event_name == 'pull_request_target'
with:
ref: ${{ github.event.pull_request.head.sha }}
@@ -219,13 +219,13 @@ jobs:
name: Build libservo and MSRV check
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name != 'pull_request_target'
with:
fetch-depth: 1
# This is necessary to checkout the pull request if this run was triggered via a
# `pull_request_target` event.
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name == 'pull_request_target'
with:
ref: ${{ github.event.pull_request.head.sha }}

View File

@@ -30,11 +30,11 @@ jobs:
matrix:
chunk_id: [1, 2, 3, 4, 5]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name != 'pull_request_target'
# This is necessary to checkout the pull request if this run was triggered via a
# `pull_request_target` event.
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name == 'pull_request_target'
with:
ref: refs/pull/${{ github.event.number }}/head
@@ -92,7 +92,7 @@ jobs:
name: wpt-full-logs-${{ env.NAME }}
pattern: wpt-full-logs-${{ env.NAME }}-*
delete-merged: true
- uses: actions/checkout@v3
- uses: actions/checkout@v5
if: ${{ !cancelled() }}
with:
fetch-depth: 2

View File

@@ -238,13 +238,13 @@ jobs:
name: Build libservo and MSRV check
runs-on: macos-15-intel
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name != 'pull_request_target'
with:
fetch-depth: 1
# This is necessary to checkout the pull request if this run was triggered via a
# `pull_request_target` event.
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name == 'pull_request_target'
with:
ref: ${{ github.event.pull_request.head.sha }}

View File

@@ -20,7 +20,7 @@ jobs:
outputs:
configuration: ${{ steps.configuration.outputs.result }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 1
sparse-checkout: |

View File

@@ -48,13 +48,13 @@ jobs:
outputs:
signed: ${{ steps.signing_config.outputs.signed }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name != 'pull_request_target'
with:
fetch-depth: 2
# This is necessary to checkout the pull request if this run was triggered via a
# `pull_request_target` event.
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name == 'pull_request_target'
with:
ref: ${{ github.event.pull_request.head.sha }}
@@ -266,13 +266,13 @@ jobs:
# to make sure we don't use a previous version if installation failed for some reason.
hdc uninstall org.servo.servo
hdc install -r servoshell-hos-signed.hap
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name != 'pull_request_target'
with:
fetch-depth: 0
# This is necessary to checkout the pull request if this run was triggered via a
# `pull_request_target` event.
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name == 'pull_request_target'
with:
ref: ${{ github.event.pull_request.head.sha }}

View File

@@ -22,7 +22,7 @@ jobs:
cd servo
git fetch origin pull/${{ github.event.pull_request.number}}/head:pr --depth ${{ env.PR_FETCH_DEPTH }}
- name: Check out wpt
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
path: wpt
repository: 'web-platform-tests/wpt'

View File

@@ -28,7 +28,7 @@ jobs:
- "linux"
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
- uses: actions/download-artifact@v4
with:
name: wpt-full-logs-linux

View File

@@ -66,7 +66,7 @@ jobs:
}
return try_string;
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
sparse-checkout: |
python/servo/try_parser.py

View File

@@ -35,7 +35,7 @@ jobs:
outputs:
configuration: ${{ steps.configuration.outputs.result }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 1
sparse-checkout: |

View File

@@ -229,13 +229,13 @@ jobs:
name: Build libservo and MSRV check
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name != 'pull_request_target'
with:
fetch-depth: 1
# This is necessary to checkout the pull request if this run was triggered via a
# `pull_request_target` event.
- uses: actions/checkout@v4
- uses: actions/checkout@v5
if: github.event_name == 'pull_request_target'
with:
ref: ${{ github.event.pull_request.head.sha }}