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
+8 -1
View File
@@ -10,6 +10,10 @@ concurrency:
group: build-deb-${{ github.ref }} group: build-deb-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
defaults:
run:
shell: bash # the runner's default is sh; steps below use bash syntax
env: env:
GITEA_URL: https://code.lotusguild.org GITEA_URL: https://code.lotusguild.org
OWNER: LotusGuild OWNER: LotusGuild
@@ -31,8 +35,11 @@ jobs:
apt-get install -y -qq --no-install-recommends \ apt-get install -y -qq --no-install-recommends \
debhelper devscripts lintian fakeroot bats tmux fzf jq curl ca-certificates xz-utils >/dev/null debhelper devscripts lintian fakeroot bats tmux fzf jq curl ca-certificates xz-utils >/dev/null
VER=v0.10.0 VER=v0.10.0
curl -fsSL "https://github.com/koalaman/shellcheck/releases/download/${VER}/shellcheck-${VER}.linux.x86_64.tar.xz" | tar -xJ curl -fsSL --retry 5 --retry-delay 5 --retry-all-errors -o shellcheck.tar.xz \
"https://github.com/koalaman/shellcheck/releases/download/${VER}/shellcheck-${VER}.linux.x86_64.tar.xz"
tar -xJf shellcheck.tar.xz
install "shellcheck-${VER}/shellcheck" /usr/local/bin/shellcheck install "shellcheck-${VER}/shellcheck" /usr/local/bin/shellcheck
rm -rf shellcheck.tar.xz "shellcheck-${VER}"
shellcheck --version | head -2 shellcheck --version | head -2
- name: npm ci - name: npm ci
+1 -1
View File
@@ -18,7 +18,7 @@ fi
mkdir -p "$(dirname "$out")" mkdir -p "$(dirname "$out")"
tmp=$(mktemp "$out.XXXXXX") tmp=$(mktemp "$out.XXXXXX")
trap 'rm -f "$tmp"' EXIT 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; } echo "$expected $tmp" | sha256sum -c --status - || { echo "fetch-ttyd: checksum mismatch for $asset $version" >&2; exit 1; }
chmod 0755 "$tmp" chmod 0755 "$tmp"
mv -f "$tmp" "$out" mv -f "$tmp" "$out"