ci: make apt registry upload idempotent (tolerate 409) #31

Merged
jessey merged 1 commits from fix/apt-409 into main 2026-05-22 13:26:48 +00:00
Owner

Gitea's Debian registry is immutable, so re-uploading an existing version returns
409. With --fail that aborted the release on any re-run / repeat push at the same
version. Now we capture the HTTP code: 2xx = uploaded, 409 = already published
(skip), anything else = fail with the body. Also fixed the stale skip message
(REGISTRY_TOKEN, not PACKAGES_TOKEN).

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Gitea's Debian registry is immutable, so re-uploading an existing version returns 409. With --fail that aborted the release on any re-run / repeat push at the same version. Now we capture the HTTP code: 2xx = uploaded, 409 = already published (skip), anything else = fail with the body. Also fixed the stale skip message (REGISTRY_TOKEN, not PACKAGES_TOKEN). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
jessey added 1 commit 2026-05-22 13:21:53 +00:00
ci: make apt registry upload idempotent (tolerate 409)
tests / core (pull_request) Successful in 12s
tests / gui-smoke (pull_request) Successful in 28s
a6453335e9
Gitea's Debian registry is immutable, so re-uploading an existing version returns
409. With --fail that aborted the release on any re-run / repeat push at the same
version. Now we capture the HTTP code: 2xx = uploaded, 409 = already published
(skip), anything else = fail with the body. Also fixed the stale skip message
(REGISTRY_TOKEN, not PACKAGES_TOKEN).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
jessey merged commit a028fe6d38 into main 2026-05-22 13:26:48 +00:00
jessey deleted branch fix/apt-409 2026-05-22 13:26:48 +00:00
Sign in to join this conversation.