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. Backported-from: e94dec0c1d (GitHub Actions: update to checkout@v4, 2024-02-02) Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Junio C Hamano committed Feb 2, 2024 at 12:39 UTC ce47f7c85f6a69b3c9a97f6b97dbed66069142c4
2 files changed +9 -9
.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/main.yml
+8 -8
@@ -95,7 +95,7 @@ jobs:
95 group: windows-build-${{ github.ref }}
96 cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
97 steps:
98 - - uses: actions/checkout@v3
98 + - uses: actions/checkout@v4
99 - uses: git-for-windows/setup-git-for-windows-sdk@v1
100 - name: build
101 shell: bash
@@ -156,10 +156,10 @@ jobs:
156 group: vs-build-${{ github.ref }}
157 cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
158 steps:
159 - - uses: actions/checkout@v3
159 + - uses: actions/checkout@v4
160 - uses: git-for-windows/setup-git-for-windows-sdk@v1
161 - name: initialize vcpkg
162 - uses: actions/checkout@v3
162 + uses: actions/checkout@v4
163 with:
164 repository: 'microsoft/vcpkg'
165 path: 'compat/vcbuild/vcpkg'
@@ -286,7 +286,7 @@ jobs:
286 runs_on_pool: ${{matrix.vector.pool}}
287 runs-on: ${{matrix.vector.pool}}
288 steps:
289 - - uses: actions/checkout@v3
289 + - uses: actions/checkout@v4
290 - run: ci/install-dependencies.sh
291 - run: ci/run-build-and-tests.sh
292 - run: ci/print-test-failures.sh
@@ -319,7 +319,7 @@ jobs:
319 runs-on: ubuntu-latest
320 container: ${{matrix.vector.image}}
321 steps:
322 - - uses: actions/checkout@v3
322 + - uses: actions/checkout@v4
323 if: matrix.vector.jobname != 'linux32'
324 - uses: actions/checkout@v1
325 if: matrix.vector.jobname == 'linux32'
@@ -349,7 +349,7 @@ jobs:
349 group: static-analysis-${{ github.ref }}
350 cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
351 steps:
352 - - uses: actions/checkout@v3
352 + - uses: actions/checkout@v4
353 - run: ci/install-dependencies.sh
354 - run: ci/run-static-analysis.sh
355 - run: ci/check-directional-formatting.bash
@@ -372,7 +372,7 @@ jobs:
372 artifact: sparse-20.04
373 - name: Install the current `sparse` package
374 run: sudo dpkg -i sparse-20.04/sparse_*.deb
375 - - uses: actions/checkout@v3
375 + - uses: actions/checkout@v4
376 - name: Install other dependencies
377 run: ci/install-dependencies.sh
378 - run: make sparse
@@ -387,6 +387,6 @@ jobs:
387 jobname: Documentation
388 runs-on: ubuntu-latest
389 steps:
390 - - uses: actions/checkout@v3
390 + - uses: actions/checkout@v4
391 - run: ci/install-dependencies.sh
392 - run: ci/test-documentation.sh