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 <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Dec 7, 2022 at 14:34 UTC 1f398446c34f4c68fc43e1d93f5a9f5407f8fb2f
1 file changed +14 -8
.github/workflows/main.yml
+14 -8
@@ -94,7 +94,7 @@ jobs:
94 - name: zip up tracked files
95 run: git archive -o artifacts/tracked.tar.gz HEAD
96 - name: upload tracked files and build artifacts
97 - uses: actions/upload-artifact@v2
97 + uses: actions/upload-artifact@v3
98 with:
99 name: windows-artifacts
100 path: artifacts
@@ -108,7 +108,7 @@ jobs:
108 nr: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
109 steps:
110 - name: download tracked files and build artifacts
111 - uses: actions/download-artifact@v2
111 + uses: actions/download-artifact@v3
112 with:
113 name: windows-artifacts
114 path: ${{github.workspace}}
@@ -125,7 +125,7 @@ jobs:
125 run: ci/print-test-failures.sh
126 - name: Upload failed tests' directories
127 if: failure() && env.FAILED_TEST_ARTIFACTS != ''
128 - uses: actions/upload-artifact@v2
128 + uses: actions/upload-artifact@v3
129 with:
130 name: failed-tests-windows
131 path: ${{env.FAILED_TEST_ARTIFACTS}}
@@ -177,7 +177,7 @@ jobs:
177 - name: zip up tracked files
178 run: git archive -o artifacts/tracked.tar.gz HEAD
179 - name: upload tracked files and build artifacts
180 - uses: actions/upload-artifact@v2
180 + uses: actions/upload-artifact@v3
181 with:
182 name: vs-artifacts
183 path: artifacts
@@ -192,7 +192,7 @@ jobs:
192 steps:
193 - uses: git-for-windows/setup-git-for-windows-sdk@v1
194 - name: download tracked files and build artifacts
195 - uses: actions/download-artifact@v2
195 + uses: actions/download-artifact@v3
196 with:
197 name: vs-artifacts
198 path: ${{github.workspace}}
@@ -210,7 +210,7 @@ jobs:
210 run: ci/print-test-failures.sh
211 - name: Upload failed tests' directories
212 if: failure() && env.FAILED_TEST_ARTIFACTS != ''
213 - uses: actions/upload-artifact@v2
213 + uses: actions/upload-artifact@v3
214 with:
215 name: failed-tests-windows
216 path: ${{env.FAILED_TEST_ARTIFACTS}}
@@ -267,7 +267,7 @@ jobs:
267 run: ci/print-test-failures.sh
268 - name: Upload failed tests' directories
269 if: failure() && env.FAILED_TEST_ARTIFACTS != ''
270 - uses: actions/upload-artifact@v2
270 + uses: actions/upload-artifact@v3
271 with:
272 name: failed-tests-${{matrix.vector.jobname}}
273 path: ${{env.FAILED_TEST_ARTIFACTS}}
@@ -299,7 +299,13 @@ jobs:
299 shell: bash
300 run: ci/print-test-failures.sh
301 - 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'
309 uses: actions/upload-artifact@v1
310 with:
311 name: failed-tests-${{matrix.vector.jobname}}