Skip to content

Commit ce47f7c

Browse files
gitsterdscho
authored andcommitted
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. [*] 6cf4d90 (ci(main): upgrade actions/checkout to v3, 2022-12-05) refers to actions/runner#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: e94dec0 (GitHub Actions: update to checkout@v4, 2024-02-02) Signed-off-by: Junio C Hamano <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 6133e3a commit ce47f7c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/check-whitespace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
check-whitespace:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0
2525

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
group: windows-build-${{ github.ref }}
9696
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
9797
steps:
98-
- uses: actions/checkout@v3
98+
- uses: actions/checkout@v4
9999
- uses: git-for-windows/setup-git-for-windows-sdk@v1
100100
- name: build
101101
shell: bash
@@ -156,10 +156,10 @@ jobs:
156156
group: vs-build-${{ github.ref }}
157157
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
158158
steps:
159-
- uses: actions/checkout@v3
159+
- uses: actions/checkout@v4
160160
- uses: git-for-windows/setup-git-for-windows-sdk@v1
161161
- name: initialize vcpkg
162-
uses: actions/checkout@v3
162+
uses: actions/checkout@v4
163163
with:
164164
repository: 'microsoft/vcpkg'
165165
path: 'compat/vcbuild/vcpkg'
@@ -286,7 +286,7 @@ jobs:
286286
runs_on_pool: ${{matrix.vector.pool}}
287287
runs-on: ${{matrix.vector.pool}}
288288
steps:
289-
- uses: actions/checkout@v3
289+
- uses: actions/checkout@v4
290290
- run: ci/install-dependencies.sh
291291
- run: ci/run-build-and-tests.sh
292292
- run: ci/print-test-failures.sh
@@ -319,7 +319,7 @@ jobs:
319319
runs-on: ubuntu-latest
320320
container: ${{matrix.vector.image}}
321321
steps:
322-
- uses: actions/checkout@v3
322+
- uses: actions/checkout@v4
323323
if: matrix.vector.jobname != 'linux32'
324324
- uses: actions/checkout@v1
325325
if: matrix.vector.jobname == 'linux32'
@@ -349,7 +349,7 @@ jobs:
349349
group: static-analysis-${{ github.ref }}
350350
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
351351
steps:
352-
- uses: actions/checkout@v3
352+
- uses: actions/checkout@v4
353353
- run: ci/install-dependencies.sh
354354
- run: ci/run-static-analysis.sh
355355
- run: ci/check-directional-formatting.bash
@@ -372,7 +372,7 @@ jobs:
372372
artifact: sparse-20.04
373373
- name: Install the current `sparse` package
374374
run: sudo dpkg -i sparse-20.04/sparse_*.deb
375-
- uses: actions/checkout@v3
375+
- uses: actions/checkout@v4
376376
- name: Install other dependencies
377377
run: ci/install-dependencies.sh
378378
- run: make sparse
@@ -387,6 +387,6 @@ jobs:
387387
jobname: Documentation
388388
runs-on: ubuntu-latest
389389
steps:
390-
- uses: actions/checkout@v3
390+
- uses: actions/checkout@v4
391391
- run: ci/install-dependencies.sh
392392
- run: ci/test-documentation.sh

0 commit comments

Comments
 (0)