ci: retry creating the forgejo release while the tag is recorded #4
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/release-tag-race"
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?
Summary
The release of v1.1.0 failed after semantic-release pushed the tag:
Forgejo records a pushed tag asynchronously. The release plugin (
release/forgejo-release.mjs) created the release in the same second the tag was pushed and collided with that record. The job failed, itsversionoutput was lost, theimagesjob was skipped and v1.1.0 was never deployed.The never-deployed tag
v1.1.0has been deleted, so merging this cuts v1.1.0 again from the commits since v1.0.0 (the Rohlík feature and this fix), now with the fixed plugin, and deploys it.Testing
make cipassed.publishagainst a mockedfetch: 409, 409, 201 creates the release on the third try; a persistent 409 fails after the retries; a 500 fails at once.