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:
Martin Robinson 2024-02-19 17:23:53 +01:00 committed by GitHub
parent 8faf6839d3
commit 2946fa83ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 20 additions and 38 deletions

View file

@ -29,13 +29,13 @@ jobs:
matrix:
arch: ['armv7-linux-androideabi', 'i686-linux-android']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name != 'issue_comment' && github.event_name != 'pull_request_target'
with:
fetch-depth: 2
# This is necessary to checkout the pull request if this run was triggered
# via an `issue_comment` action on a pull request.
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name == 'issue_comment' || github.event_name == 'pull_request_target'
with:
ref: refs/pull/${{ github.event.issue.number || github.event.number }}/head