SHA placeholder automation debugging

This commit is contained in:
icenine451 2023-04-13 11:51:43 -04:00
parent 1bdb4c6674
commit db8b118626
2 changed files with 7 additions and 0 deletions

View file

@ -44,6 +44,7 @@ jobs:
org.freedesktop.Sdk.Extension.dotnet6/x86_64/21.08
echo ${GITHUB_WORKSPACE} #DEBUG
df -h ${GITHUB_WORKSPACE} #DEBUG
ls -la ${GITHUB_WORKSPACE} #DEBUG
sh ${GITHUB_WORKSPACE}/automation_tools/update_sha.sh # Run SHA placehold replacement script for dynamic archives
- name: Build flatpak

View file

@ -6,8 +6,14 @@
rd_manifest=${GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml
sha_update_list=${GITHUB_WORKSPACE}/automation_tools/sha_update_list.cfg
echo "Manifest location: $rd_manifest"
echo "Hash update list location: $sha_update_list"
echo
while IFS="^" read -r url placeholder
do
echo "Placeholder text: $placeholder"
echo "URL to hash: $url"
hash=$(curl -sL "$url" | sha256sum | cut -d ' ' -f1)
sed -i 's^'"$placeholder"'^'"$hash"'^' $rd_manifest
done < $sha_update_list