Skip to content

Commit c98ae73

Browse files
committed
ci(telegram-publish): use --clobber to survive partial-download retries
The v1.9.2 telegram publish failed because attempt 1 hit a transient HTTP 500 from GitHub's release-asset CDN mid-download, leaving partial files in assets/. Attempts 2 and 3 then errored on "already exists" because gh release download refuses to overwrite without --clobber. With --clobber, retries can complete cleanly even when an earlier attempt left files behind. No change to the success path.
1 parent d162a47 commit c98ae73

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/telegram-publish-files.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,17 @@ jobs:
8282
# Mirror the retry pattern from `release.yml`'s download step —
8383
# GitHub's release-asset CDN occasionally times out on cold
8484
# tags. Three attempts with 30 s backoff covers most flakes.
85+
#
86+
# `--clobber` overwrites any partial files left behind by a
87+
# previous failed attempt — without it, attempt 2/3 would error
88+
# with "already exists" the moment any single asset finished
89+
# downloading on attempt 1 before the CDN timed out (the v1.9.2
90+
# publish hit exactly this — HTTP 500 mid-download, then attempts
91+
# 2/3 failed on "already exists" for the assets that did finish).
8592
for attempt in 1 2 3; do
8693
if gh release download "v${{ steps.ver.outputs.version }}" \
8794
--dir assets \
95+
--clobber \
8896
--repo "${GITHUB_REPOSITORY}"; then
8997
echo "downloaded release assets on attempt $attempt"
9098
ls -la assets/

0 commit comments

Comments
 (0)