ci: run steps with bash and retry flaky downloads
build-deb / Lint, test, package (push) Failing after 1m25s
build-deb / Notify on failure (push) Successful in 3s

The runner defaults to sh, but the version and release steps use bash
syntax. Downloads from GitHub now retry on any error (connection resets
broke run #2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-06 23:45:57 -04:00
co-authored by Claude Opus 5.5
parent 35d54f70fe
commit 796b0f1fe0
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ fi
mkdir -p "$(dirname "$out")"
tmp=$(mktemp "$out.XXXXXX")
trap 'rm -f "$tmp"' EXIT
curl -fsSL --retry 3 -o "$tmp" "https://github.com/tsl0922/ttyd/releases/download/$version/$asset"
curl -fsSL --retry 5 --retry-delay 5 --retry-all-errors -o "$tmp" "https://github.com/tsl0922/ttyd/releases/download/$version/$asset"
echo "$expected $tmp" | sha256sum -c --status - || { echo "fetch-ttyd: checksum mismatch for $asset $version" >&2; exit 1; }
chmod 0755 "$tmp"
mv -f "$tmp" "$out"