GitHub Actions: update to checkout@v4
We seem to be getting "Node.js 16 actions are deprecated." warnings for jobs that use checkout@v3. Except for the i686 containers job that is kept at checkout@v1 [*], update to checkout@v4, which is said to use Node.js 20. [*] 6cf4d908 (ci(main): upgrade actions/checkout to v3, 2022-12-05) refers to https://github.com/actions/runner/issues/2115 and explains why container jobs are kept at checkout@v1. We may want to check the current status of the issue and move it to the same version as other jobs, but that is outside the scope of this step. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Feb 2, 2024 at 12:39 UTC
e94dec0c1d7709282c2bff168bdad5485a95baa8
3 files changed
+10
-10
.github/workflows/check-whitespace.yml
+1
-1
@@ -19,7 +19,7 @@ jobs:
19
check-whitespace:
20
runs-on: ubuntu-latest
21
steps:
22
- - uses: actions/checkout@v3
22
+ - uses: actions/checkout@v4
23
with:
24
fetch-depth: 0
25
.github/workflows/coverity.yml
+1
-1
@@ -38,7 +38,7 @@ jobs:
38
COVERITY_LANGUAGE: cxx
39
COVERITY_PLATFORM: overridden-below
40
steps:
41
- - uses: actions/checkout@v3
41
+ - uses: actions/checkout@v4
42
- name: install minimal Git for Windows SDK
43
if: contains(matrix.os, 'windows')
44
uses: git-for-windows/setup-git-for-windows-sdk@v1
.github/workflows/main.yml
+8
-8
@@ -112,7 +112,7 @@ jobs:
112
group: windows-build-${{ github.ref }}
113
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
114
steps:
115
- - uses: actions/checkout@v3
115
+ - uses: actions/checkout@v4
116
- uses: git-for-windows/setup-git-for-windows-sdk@v1
117
- name: build
118
shell: bash
@@ -173,10 +173,10 @@ jobs:
173
group: vs-build-${{ github.ref }}
174
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
175
steps:
176
- - uses: actions/checkout@v3
176
+ - uses: actions/checkout@v4
177
- uses: git-for-windows/setup-git-for-windows-sdk@v1
178
- name: initialize vcpkg
179
- uses: actions/checkout@v3
179
+ uses: actions/checkout@v4
180
with:
181
repository: 'microsoft/vcpkg'
182
path: 'compat/vcbuild/vcpkg'
@@ -297,7 +297,7 @@ jobs:
297
runs_on_pool: ${{matrix.vector.pool}}
298
runs-on: ${{matrix.vector.pool}}
299
steps:
300
- - uses: actions/checkout@v3
300
+ - uses: actions/checkout@v4
301
- run: ci/install-dependencies.sh
302
- run: ci/run-build-and-tests.sh
303
- name: print test failures
@@ -331,7 +331,7 @@ jobs:
331
runs-on: ubuntu-latest
332
container: ${{matrix.vector.image}}
333
steps:
334
- - uses: actions/checkout@v3
334
+ - uses: actions/checkout@v4
335
if: matrix.vector.jobname != 'linux32'
336
- uses: actions/checkout@v1
337
if: matrix.vector.jobname == 'linux32'
@@ -362,7 +362,7 @@ jobs:
362
group: static-analysis-${{ github.ref }}
363
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
364
steps:
365
- - uses: actions/checkout@v3
365
+ - uses: actions/checkout@v4
366
- run: ci/install-dependencies.sh
367
- run: ci/run-static-analysis.sh
368
- run: ci/check-directional-formatting.bash
@@ -385,7 +385,7 @@ jobs:
385
artifact: sparse-20.04
386
- name: Install the current `sparse` package
387
run: sudo dpkg -i sparse-20.04/sparse_*.deb
388
- - uses: actions/checkout@v3
388
+ - uses: actions/checkout@v4
389
- name: Install other dependencies
390
run: ci/install-dependencies.sh
391
- run: make sparse
@@ -400,6 +400,6 @@ jobs:
400
jobname: Documentation
401
runs-on: ubuntu-latest
402
steps:
403
- - uses: actions/checkout@v3
403
+ - uses: actions/checkout@v4
404
- run: ci/install-dependencies.sh
405
- run: ci/test-documentation.sh