Skip to content

Commit

Permalink
fix mutiple artifacts with same name due to breaking v4 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rasswanth-s committed Dec 22, 2023
1 parent d822ad2 commit 153d79b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cd-syft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ jobs:
- name: Upload digest for grid-backend, grid-frontend and grid-seaweedfs
uses: actions/upload-artifact@v4
with:
name: digests-${{ steps.release_metadata.outputs.grid_version }}
name: digests-${{ steps.release_metadata.outputs.grid_version }}-${{ steps.release_metadata.outputs.short_release_platform }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand All @@ -218,8 +218,9 @@ jobs:
- name: Download digests
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.build-and-push-docker-images.outputs.grid_version }}
path: /tmp/digests
pattern: digests-${{ needs.build-and-push-docker-images.outputs.grid_version }}-*
merge-multiple: true

- name: Set up Docker Buildx
id: buildx
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/cd-syftcli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
- name: upload binaries
uses: actions/upload-artifact@v4
with:
name: syftcli-binaries-${{needs.deploy-syft-cli.outputs.deployed_version}}
name: syftcli-binaries-${{needs.deploy-syft-cli.outputs.deployed_version}}-${{matrix.os}}
path: ./packages/syftcli/dist/cli/*
if-no-files-found: error

Expand Down Expand Up @@ -175,8 +175,9 @@ jobs:
if: steps.check-pypi.outputs.released == 'true'
uses: actions/download-artifact@v4
with:
name: syftcli-binaries-${{needs.deploy-syft-cli.outputs.deployed_version}}
pattern: syftcli-binaries-${{needs.deploy-syft-cli.outputs.deployed_version}}-*
path: ./downloaded-binaries/
merge-multiple: true

- name: GitHub Release
if: steps.check-pypi.outputs.released == 'true'
Expand Down

0 comments on commit 153d79b

Please sign in to comment.