Make release asset uploads idempotent #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
If the release workflow is re-run (e.g. retrigger), asset uploads fail because assets with the same name already exist.
Fix
Before uploading, check if an asset with the same name exists on the release. If so, delete it first (or use replace API if available).