Skip to content

Commit

Permalink
Update artifact-handling actions to latest version. (netdata#16639)
Browse files Browse the repository at this point in the history
Done independently of dependabot because this requires special handling
to make it work properly.
  • Loading branch information
Ferroin authored Dec 21, 2023
1 parent 95d8a5f commit d32b276
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
- name: Store
id: store
if: needs.file-check.outputs.run == 'true'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist-tarball
path: artifacts/*.tar.gz
Expand Down Expand Up @@ -202,9 +202,9 @@ jobs:
- name: Store
id: store
if: needs.file-check.outputs.run == 'true'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: static-archive
name: static-archive-${{ matrix.arch }}
path: artifacts/*.gz.run
retention-days: 30
- name: Failure Notification
Expand Down Expand Up @@ -345,7 +345,7 @@ jobs:
tags: test:${{ matrix.artifact_key }}
- name: Upload image artifact
id: upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_key }}-test-env
path: /tmp/image.tar
Expand Down Expand Up @@ -401,7 +401,7 @@ jobs:
- name: Fetch test environment
id: fetch
if: needs.file-check.outputs.run == 'true'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ matrix.artifact_key }}-test-env
- name: Load test environment
Expand Down Expand Up @@ -484,7 +484,7 @@ jobs:
- name: Fetch dist tarball artifacts
id: fetch-tarball
if: needs.file-check.outputs.run == 'true'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist-tarball
path: dist-tarball
Expand All @@ -503,7 +503,7 @@ jobs:
- name: Fetch test environment
id: fetch-test-environment
if: needs.file-check.outputs.run == 'true'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ matrix.artifact_key }}-test-env
- name: Load test environment
Expand Down Expand Up @@ -565,17 +565,18 @@ jobs:
- name: Retrieve Dist Tarball
id: fetch-dist
if: needs.file-check.outputs.run == 'true'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist-tarball
path: dist-tarball
- name: Retrieve Static Build Artifacts
id: fetch-static
if: needs.file-check.outputs.run == 'true'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: static-archive
pattern: static-archive-*
path: static-archive
merge-multiple: true
- name: Prepare Artifacts
id: consolidate
if: needs.file-check.outputs.run == 'true'
Expand All @@ -591,7 +592,7 @@ jobs:
- name: Store Artifacts
id: store
if: needs.file-check.outputs.run == 'true'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: final-artifacts
path: artifacts/*
Expand Down Expand Up @@ -647,7 +648,7 @@ jobs:
- name: Fetch artifacts
id: fetch
if: needs.file-check.outputs.run == 'true'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: final-artifacts
path: artifacts
Expand Down Expand Up @@ -711,7 +712,7 @@ jobs:
- name: Fetch artifacts
id: fetch-artifacts
if: needs.file-check.outputs.run == 'true'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: final-artifacts
path: artifacts
Expand Down Expand Up @@ -760,7 +761,7 @@ jobs:
steps:
- name: Retrieve Artifacts
id: fetch
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: final-artifacts
path: final-artifacts
Expand Down Expand Up @@ -825,7 +826,7 @@ jobs:
token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
- name: Retrieve Artifacts
id: fetch
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: final-artifacts
path: final-artifacts
Expand Down Expand Up @@ -939,7 +940,7 @@ jobs:
uses: actions/checkout@v4
- name: Retrieve Artifacts
id: fetch
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: final-artifacts
path: final-artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ jobs:
id: artifacts
if: needs.file-check.outputs.run == 'true'
continue-on-error: true
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.distro }}-${{ matrix.version }}-${{ matrix.arch }}-packages
path: ${{ github.workspace }}/artifacts/*
Expand Down

0 comments on commit d32b276

Please sign in to comment.