Skip to content

Commit

Permalink
Fix Release Action
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3-M4513R committed Jun 14, 2024
1 parent b9b8a9e commit fec49ab
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,9 @@ jobs:
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Rename and move artifacts
run: |
for dir in artifacts/*/
do
dir=${dir%*/} # remove the trailing "/"
for file in $dir/*
do
file=${file##*/} # remove the path before the filename
base=${file%.*} # remove the extension
ext=${file#"$base"} # remove the filename before the extension
echo "moving ${dir}/${file} to artifacts/${file%%.*}-${dir##*/}${ext}"
mv "${dir}/${file}" "artifacts/${file%%.*}-${dir##*/}${ext}"
done
rm -r "${dir}"
done
mv artifacts/sbom.spdx.json sbom.spdx.json
- uses: actions/attest-sbom@v1
with:
Expand All @@ -67,6 +55,7 @@ jobs:
create-sbom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: anchore/sbom-action@v0
with:
artifact-name: "sbom.spdx.json"
Expand Down

0 comments on commit fec49ab

Please sign in to comment.