Update artifact-handling actions to latest version. (#16639)
Done independently of dependabot because this requires special handling to make it work properly.
Austin S. Hemmelgarn committed
Dec 21, 2023 at 07:14 UTC
d32b2760a0f1014df0828b6f5051995819e7eec0
2 files changed
+18
-17
.github/workflows/build.yml
+17
-16
@@ -113,7 +113,7 @@ jobs:
113
- name: Store
114
id: store
115
if: needs.file-check.outputs.run == 'true'
116
- uses: actions/upload-artifact@v3
116
+ uses: actions/upload-artifact@v4
117
with:
118
name: dist-tarball
119
path: artifacts/*.tar.gz
@@ -202,9 +202,9 @@ jobs:
202
- name: Store
203
id: store
204
if: needs.file-check.outputs.run == 'true'
205
- uses: actions/upload-artifact@v3
205
+ uses: actions/upload-artifact@v4
206
with:
207
- name: static-archive
207
+ name: static-archive-${{ matrix.arch }}
208
path: artifacts/*.gz.run
209
retention-days: 30
210
- name: Failure Notification
@@ -345,7 +345,7 @@ jobs:
345
tags: test:${{ matrix.artifact_key }}
346
- name: Upload image artifact
347
id: upload
348
- uses: actions/upload-artifact@v3
348
+ uses: actions/upload-artifact@v4
349
with:
350
name: ${{ matrix.artifact_key }}-test-env
351
path: /tmp/image.tar
@@ -401,7 +401,7 @@ jobs:
401
- name: Fetch test environment
402
id: fetch
403
if: needs.file-check.outputs.run == 'true'
404
- uses: actions/download-artifact@v3
404
+ uses: actions/download-artifact@v4
405
with:
406
name: ${{ matrix.artifact_key }}-test-env
407
- name: Load test environment
@@ -484,7 +484,7 @@ jobs:
484
- name: Fetch dist tarball artifacts
485
id: fetch-tarball
486
if: needs.file-check.outputs.run == 'true'
487
- uses: actions/download-artifact@v3
487
+ uses: actions/download-artifact@v4
488
with:
489
name: dist-tarball
490
path: dist-tarball
@@ -503,7 +503,7 @@ jobs:
503
- name: Fetch test environment
504
id: fetch-test-environment
505
if: needs.file-check.outputs.run == 'true'
506
- uses: actions/download-artifact@v3
506
+ uses: actions/download-artifact@v4
507
with:
508
name: ${{ matrix.artifact_key }}-test-env
509
- name: Load test environment
@@ -565,17 +565,18 @@ jobs:
565
- name: Retrieve Dist Tarball
566
id: fetch-dist
567
if: needs.file-check.outputs.run == 'true'
568
- uses: actions/download-artifact@v3
568
+ uses: actions/download-artifact@v4
569
with:
570
name: dist-tarball
571
path: dist-tarball
572
- name: Retrieve Static Build Artifacts
573
id: fetch-static
574
if: needs.file-check.outputs.run == 'true'
575
- uses: actions/download-artifact@v3
575
+ uses: actions/download-artifact@v4
576
with:
577
- name: static-archive
577
+ pattern: static-archive-*
578
path: static-archive
579
+ merge-multiple: true
580
- name: Prepare Artifacts
581
id: consolidate
582
if: needs.file-check.outputs.run == 'true'
@@ -591,7 +592,7 @@ jobs:
592
- name: Store Artifacts
593
id: store
594
if: needs.file-check.outputs.run == 'true'
594
- uses: actions/upload-artifact@v3
595
+ uses: actions/upload-artifact@v4
596
with:
597
name: final-artifacts
598
path: artifacts/*
@@ -647,7 +648,7 @@ jobs:
648
- name: Fetch artifacts
649
id: fetch
650
if: needs.file-check.outputs.run == 'true'
650
- uses: actions/download-artifact@v3
651
+ uses: actions/download-artifact@v4
652
with:
653
name: final-artifacts
654
path: artifacts
@@ -711,7 +712,7 @@ jobs:
712
- name: Fetch artifacts
713
id: fetch-artifacts
714
if: needs.file-check.outputs.run == 'true'
714
- uses: actions/download-artifact@v3
715
+ uses: actions/download-artifact@v4
716
with:
717
name: final-artifacts
718
path: artifacts
@@ -760,7 +761,7 @@ jobs:
761
steps:
762
- name: Retrieve Artifacts
763
id: fetch
763
- uses: actions/download-artifact@v3
764
+ uses: actions/download-artifact@v4
765
with:
766
name: final-artifacts
767
path: final-artifacts
@@ -825,7 +826,7 @@ jobs:
826
token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
827
- name: Retrieve Artifacts
828
id: fetch
828
- uses: actions/download-artifact@v3
829
+ uses: actions/download-artifact@v4
830
with:
831
name: final-artifacts
832
path: final-artifacts
@@ -939,7 +940,7 @@ jobs:
940
uses: actions/checkout@v4
941
- name: Retrieve Artifacts
942
id: fetch
942
- uses: actions/download-artifact@v3
943
+ uses: actions/download-artifact@v4
944
with:
945
name: final-artifacts
946
path: final-artifacts
.github/workflows/packaging.yml
+1
-1
@@ -238,7 +238,7 @@ jobs:
238
id: artifacts
239
if: needs.file-check.outputs.run == 'true'
240
continue-on-error: true
241
- uses: actions/upload-artifact@v3
241
+ uses: actions/upload-artifact@v4
242
with:
243
name: ${{ matrix.distro }}-${{ matrix.version }}-${{ matrix.arch }}-packages
244
path: ${{ github.workspace }}/artifacts/*