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 8326194
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 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 Down

0 comments on commit 8326194

Please sign in to comment.