ci(main): upgrade actions/checkout to v3
To be up to date with actions/checkout opens the door to use the latest features if necessary and get the latest security patches. This also avoids a couple of deprecation warnings in the CI runs. Note: The `actions/checkout` Action has been known to be broken in i686 containers as of v2, therefore we keep forcing it to v1 there. See actions/runner#2115 for more details. Signed-off-by: Oscar Dominguez <dominguez.celada@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Oscar Dominguez committed
Dec 5, 2022 at 10:01 UTC
6cf4d908a92296654f891d440fe09d9fd34b2272
1 file changed
+10
-7
.github/workflows/main.yml
+10
-7
@@ -83,7 +83,7 @@ jobs:
83
if: needs.ci-config.outputs.enabled == 'yes'
84
runs-on: windows-latest
85
steps:
86
- - uses: actions/checkout@v2
86
+ - uses: actions/checkout@v3
87
- uses: git-for-windows/setup-git-for-windows-sdk@v1
88
- name: build
89
shell: bash
@@ -138,10 +138,10 @@ jobs:
138
GIT_CONFIG_PARAMETERS: "'user.name=CI' 'user.email=ci@git'"
139
runs-on: windows-latest
140
steps:
141
- - uses: actions/checkout@v2
141
+ - uses: actions/checkout@v3
142
- uses: git-for-windows/setup-git-for-windows-sdk@v1
143
- name: initialize vcpkg
144
- uses: actions/checkout@v2
144
+ uses: actions/checkout@v3
145
with:
146
repository: 'microsoft/vcpkg'
147
path: 'compat/vcbuild/vcpkg'
@@ -258,7 +258,7 @@ jobs:
258
runs_on_pool: ${{matrix.vector.pool}}
259
runs-on: ${{matrix.vector.pool}}
260
steps:
261
- - uses: actions/checkout@v2
261
+ - uses: actions/checkout@v3
262
- run: ci/install-dependencies.sh
263
- run: ci/run-build-and-tests.sh
264
- name: print test failures
@@ -291,7 +291,10 @@ jobs:
291
runs-on: ubuntu-latest
292
container: ${{matrix.vector.image}}
293
steps:
294
+ - uses: actions/checkout@v3
295
+ if: matrix.vector.jobname != 'linux32'
296
- uses: actions/checkout@v1
297
+ if: matrix.vector.jobname == 'linux32'
298
- run: ci/install-docker-dependencies.sh
299
- run: ci/run-build-and-tests.sh
300
- name: print test failures
@@ -311,7 +314,7 @@ jobs:
314
jobname: StaticAnalysis
315
runs-on: ubuntu-22.04
316
steps:
314
- - uses: actions/checkout@v2
317
+ - uses: actions/checkout@v3
318
- run: ci/install-dependencies.sh
319
- run: ci/run-static-analysis.sh
320
- run: ci/check-directional-formatting.bash
@@ -331,7 +334,7 @@ jobs:
334
artifact: sparse-20.04
335
- name: Install the current `sparse` package
336
run: sudo dpkg -i sparse-20.04/sparse_*.deb
334
- - uses: actions/checkout@v2
337
+ - uses: actions/checkout@v3
338
- name: Install other dependencies
339
run: ci/install-dependencies.sh
340
- run: make sparse
@@ -343,6 +346,6 @@ jobs:
346
jobname: Documentation
347
runs-on: ubuntu-latest
348
steps:
346
- - uses: actions/checkout@v2
349
+ - uses: actions/checkout@v3
350
- run: ci/install-dependencies.sh
351
- run: ci/test-documentation.sh