From 9a2aa7267bbf1c7ced2d76985619df8c148a703f Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Wed, 23 Sep 2026 11:57:37 +0200 Subject: [PATCH] fix(ci): recreate release instead of --clobber upload gh release upload --clobber races GitHub's asset tombstones and 422s intermittently on reruns. Delete-then-create is deterministic; the git tag is kept. Authored By: TDvorak Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4245aa9..b04f1cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -309,6 +309,9 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAG: ${{ steps.release.outputs.tag }} run: | + # Delete-then-create keeps reruns idempotent: --clobber uploads + # race GitHub's asset tombstones and intermittently 422. The git + # tag itself is kept (no --cleanup-tag). + gh release delete "$TAG" --yes 2>/dev/null || true gh release create "$TAG" --title "$TAG" --generate-notes \ - containr-* checksums.txt \ - || gh release upload "$TAG" containr-* checksums.txt --clobber + containr-* checksums.txt