Skip to content

Commit

Permalink
Update generator_generic_slsa3.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
daoauth committed Jul 22, 2024
1 parent c60dfd2 commit 15456f3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/generator_generic_slsa3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,14 @@ jobs:
echo "Unknown compiler: ${{ inputs.move-compiler }}"
exit 1
fi
base64_toml=""
ls -l
if [ -f "Upgrade.toml" ]; then
echo "Upgrade.toml exists, including in tar."
tar -czf - Move.toml Upgrade.toml | base64 -w 0 > base64_toml.tmp
base64_toml=$(tar -czf - Move.toml Upgrade.toml | base64 -w 0)
else
echo "Upgrade.toml does not exist, only including Move.toml in tar."
base64_toml=$(tar -czf - Move.toml | base64 -w 0)
tar -czf - Move.toml | base64 -w 0 > base64_toml.tmp
fi
base64_toml=$(cat base64_toml.tmp)
echo "${base64-toml}"
echo "$base64_toml"
{
echo "package-name=${package_name}"
echo "package-framework=${{ inputs.move-compiler }}:${package_framework}"
Expand Down

0 comments on commit 15456f3

Please sign in to comment.