Skip to content

Commit 1f39844

Browse files
dschogitster
authored andcommitted
ci: avoid using deprecated {up,down}load-artifacts Action
The deprecated versions of these Actions still use node.js 12 whereas workflows will need to use node.js 16 to avoid problems going forward. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e7e5c6f commit 1f39844

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
- name: zip up tracked files
9595
run: git archive -o artifacts/tracked.tar.gz HEAD
9696
- name: upload tracked files and build artifacts
97-
uses: actions/upload-artifact@v2
97+
uses: actions/upload-artifact@v3
9898
with:
9999
name: windows-artifacts
100100
path: artifacts
@@ -108,7 +108,7 @@ jobs:
108108
nr: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
109109
steps:
110110
- name: download tracked files and build artifacts
111-
uses: actions/download-artifact@v2
111+
uses: actions/download-artifact@v3
112112
with:
113113
name: windows-artifacts
114114
path: ${{github.workspace}}
@@ -125,7 +125,7 @@ jobs:
125125
run: ci/print-test-failures.sh
126126
- name: Upload failed tests' directories
127127
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
128-
uses: actions/upload-artifact@v2
128+
uses: actions/upload-artifact@v3
129129
with:
130130
name: failed-tests-windows
131131
path: ${{env.FAILED_TEST_ARTIFACTS}}
@@ -177,7 +177,7 @@ jobs:
177177
- name: zip up tracked files
178178
run: git archive -o artifacts/tracked.tar.gz HEAD
179179
- name: upload tracked files and build artifacts
180-
uses: actions/upload-artifact@v2
180+
uses: actions/upload-artifact@v3
181181
with:
182182
name: vs-artifacts
183183
path: artifacts
@@ -192,7 +192,7 @@ jobs:
192192
steps:
193193
- uses: git-for-windows/setup-git-for-windows-sdk@v1
194194
- name: download tracked files and build artifacts
195-
uses: actions/download-artifact@v2
195+
uses: actions/download-artifact@v3
196196
with:
197197
name: vs-artifacts
198198
path: ${{github.workspace}}
@@ -210,7 +210,7 @@ jobs:
210210
run: ci/print-test-failures.sh
211211
- name: Upload failed tests' directories
212212
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
213-
uses: actions/upload-artifact@v2
213+
uses: actions/upload-artifact@v3
214214
with:
215215
name: failed-tests-windows
216216
path: ${{env.FAILED_TEST_ARTIFACTS}}
@@ -267,7 +267,7 @@ jobs:
267267
run: ci/print-test-failures.sh
268268
- name: Upload failed tests' directories
269269
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
270-
uses: actions/upload-artifact@v2
270+
uses: actions/upload-artifact@v3
271271
with:
272272
name: failed-tests-${{matrix.vector.jobname}}
273273
path: ${{env.FAILED_TEST_ARTIFACTS}}
@@ -299,7 +299,13 @@ jobs:
299299
shell: bash
300300
run: ci/print-test-failures.sh
301301
- name: Upload failed tests' directories
302-
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
302+
if: failure() && env.FAILED_TEST_ARTIFACTS != '' && matrix.vector.jobname != 'linux32'
303+
uses: actions/upload-artifact@v3
304+
with:
305+
name: failed-tests-${{matrix.vector.jobname}}
306+
path: ${{env.FAILED_TEST_ARTIFACTS}}
307+
- name: Upload failed tests' directories
308+
if: failure() && env.FAILED_TEST_ARTIFACTS != '' && matrix.vector.jobname == 'linux32'
303309
uses: actions/upload-artifact@v1
304310
with:
305311
name: failed-tests-${{matrix.vector.jobname}}

0 commit comments

Comments
 (0)