Skip to content

Commit 6cf4d90

Browse files
oscard0mgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3dcec76 commit 6cf4d90

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
if: needs.ci-config.outputs.enabled == 'yes'
8484
runs-on: windows-latest
8585
steps:
86-
- uses: actions/checkout@v2
86+
- uses: actions/checkout@v3
8787
- uses: git-for-windows/setup-git-for-windows-sdk@v1
8888
- name: build
8989
shell: bash
@@ -138,10 +138,10 @@ jobs:
138138
GIT_CONFIG_PARAMETERS: "'user.name=CI' 'user.email=ci@git'"
139139
runs-on: windows-latest
140140
steps:
141-
- uses: actions/checkout@v2
141+
- uses: actions/checkout@v3
142142
- uses: git-for-windows/setup-git-for-windows-sdk@v1
143143
- name: initialize vcpkg
144-
uses: actions/checkout@v2
144+
uses: actions/checkout@v3
145145
with:
146146
repository: 'microsoft/vcpkg'
147147
path: 'compat/vcbuild/vcpkg'
@@ -258,7 +258,7 @@ jobs:
258258
runs_on_pool: ${{matrix.vector.pool}}
259259
runs-on: ${{matrix.vector.pool}}
260260
steps:
261-
- uses: actions/checkout@v2
261+
- uses: actions/checkout@v3
262262
- run: ci/install-dependencies.sh
263263
- run: ci/run-build-and-tests.sh
264264
- name: print test failures
@@ -291,7 +291,10 @@ jobs:
291291
runs-on: ubuntu-latest
292292
container: ${{matrix.vector.image}}
293293
steps:
294+
- uses: actions/checkout@v3
295+
if: matrix.vector.jobname != 'linux32'
294296
- uses: actions/checkout@v1
297+
if: matrix.vector.jobname == 'linux32'
295298
- run: ci/install-docker-dependencies.sh
296299
- run: ci/run-build-and-tests.sh
297300
- name: print test failures
@@ -311,7 +314,7 @@ jobs:
311314
jobname: StaticAnalysis
312315
runs-on: ubuntu-22.04
313316
steps:
314-
- uses: actions/checkout@v2
317+
- uses: actions/checkout@v3
315318
- run: ci/install-dependencies.sh
316319
- run: ci/run-static-analysis.sh
317320
- run: ci/check-directional-formatting.bash
@@ -331,7 +334,7 @@ jobs:
331334
artifact: sparse-20.04
332335
- name: Install the current `sparse` package
333336
run: sudo dpkg -i sparse-20.04/sparse_*.deb
334-
- uses: actions/checkout@v2
337+
- uses: actions/checkout@v3
335338
- name: Install other dependencies
336339
run: ci/install-dependencies.sh
337340
- run: make sparse
@@ -343,6 +346,6 @@ jobs:
343346
jobname: Documentation
344347
runs-on: ubuntu-latest
345348
steps:
346-
- uses: actions/checkout@v2
349+
- uses: actions/checkout@v3
347350
- run: ci/install-dependencies.sh
348351
- run: ci/test-documentation.sh

0 commit comments

Comments
 (0)