update workflow

Signed-off-by: Andy Miller <rhuk@mac.com>
This commit is contained in:
Andy Miller
2026-04-15 14:22:48 +01:00
parent d5caf45792
commit 0e138ec28e

View File

@@ -40,7 +40,17 @@ jobs:
- name: Retrieval of Builder Scripts
run: |
# Real Grav URL
curl --silent -H "Authorization: token ${{ secrets.GLOBAL_TOKEN }}" -H "Accept: application/vnd.github.v3.raw" ${{ secrets.BUILD_SCRIPT_URL_18 }} --output build-grav.sh
http_code=$(curl --silent --write-out "%{http_code}" \
-H "Authorization: token ${{ secrets.GLOBAL_TOKEN }}" \
-H "Accept: application/vnd.github.v3.raw" \
"${{ secrets.BUILD_SCRIPT_URL_18 }}" \
--output build-grav.sh)
if [ "$http_code" != "200" ] || ! head -1 build-grav.sh | grep -q '^#!'; then
echo "ERROR: failed to fetch build script (HTTP $http_code). Response body:"
cat build-grav.sh
exit 1
fi
echo "Fetched build script ($(wc -l < build-grav.sh) lines)"
# Development Local URL
# curl ${{ secrets.BUILD_SCRIPT_URL_18 }} --output build-grav.sh