diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 67c58423..d70ad6b5 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -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 diff --git a/automation_tools/update_sha.sh b/automation_tools/update_sha.sh index 5c496f97..75edcf41 100644 --- a/automation_tools/update_sha.sh +++ b/automation_tools/update_sha.sh @@ -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 \ No newline at end of file