mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
ci: Switch to actions/checkout@v4 (#31379)
This change also removes the use of `fetch-depth: 2` where it isn't necessary. These were likely copy-and-pasted from other workflows.
This commit is contained in:
parent
8faf6839d3
commit
2946fa83ec
11 changed files with 20 additions and 38 deletions
8
.github/workflows/linux.yml
vendored
8
.github/workflows/linux.yml
vendored
|
@ -71,17 +71,17 @@ jobs:
|
|||
# runners which still use 20.04.
|
||||
runs-on: ubuntu-${{ inputs.upload && '20.04' || '22.04' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
if: github.event_name != 'pull_request_target'
|
||||
with:
|
||||
fetch-depth: 2
|
||||
fetch-depth: 2 # This is necessary for `test-tidy`.
|
||||
# This is necessary to checkout the pull request if this run was triggered via a
|
||||
# `pull_request_target` event.
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
if: github.event_name == 'pull_request_target'
|
||||
with:
|
||||
ref: refs/pull/${{ github.event.number }}/head
|
||||
fetch-depth: 2
|
||||
fetch-depth: 2 # This is necessary for `test-tidy`.
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.3
|
||||
- name: Set LIBCLANG_PATH env # needed for bindgen in mozangle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue