From 923f69c920f61e796c8fd9b06db3ae18c2625d38 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Thu, 13 Apr 2023 12:15:39 -0400 Subject: [PATCH] Automation troubleshooting --- .github/workflows/cooker-selfhosted.yml | 2 +- automation_tools/update_sha.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 13174866..2f72ca15 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -44,7 +44,7 @@ jobs: org.freedesktop.Sdk.Extension.dotnet6/x86_64/21.08 echo ${GITHUB_WORKSPACE} #DEBUG df -h ${GITHUB_WORKSPACE} #DEBUG - bash ${GITHUB_WORKSPACE}/automation_tools/update_sha.sh # Run SHA placehold replacement script for dynamic archives + /bin/bash ${GITHUB_WORKSPACE}/automation_tools/update_sha.sh # Run SHA placehold replacement script for dynamic archives - name: Build flatpak run: | diff --git a/automation_tools/update_sha.sh b/automation_tools/update_sha.sh index 9a0ce245..c8d9569b 100644 --- a/automation_tools/update_sha.sh +++ b/automation_tools/update_sha.sh @@ -15,8 +15,10 @@ echo while IFS="^" read -r url placeholder do + echo echo "Placeholder text: $placeholder" echo "URL to hash: $url" + echo hash=$(curl -sL "$url" | sha256sum | cut -d ' ' -f1) sed -i 's^'"$placeholder"'^'"$hash"'^' $rd_manifest done < <(cat "$sha_update_list") \ No newline at end of file