mirror of
https://github.com/Dvorinka/Containr.git
synced 2026-10-28 07:41:27 +00:00
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 <[email protected]> Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
a99f2e461e
commit
9a2aa7267b
1 file changed
+5
-2
@@ -309,6 +309,9 @@ jobs:
|
|||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
TAG: ${{ steps.release.outputs.tag }}
|
TAG: ${{ steps.release.outputs.tag }}
|
||||||
run: |
|
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 \
|
gh release create "$TAG" --title "$TAG" --generate-notes \
|
||||||
containr-* checksums.txt \
|
containr-* checksums.txt
|
||||||
|| gh release upload "$TAG" containr-* checksums.txt --clobber
|
|
||||||
Reference in new issue
Block a user