fix(ci): create nightly alias release through api #159
No reviewers
Labels
No labels
breaking-change
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
skip-release-notes
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/tmux-mosaic!159
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/nightly-release-alias-api"
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
The nightly workflow successfully waited for main quality and created the immutable nightly release, but failed while recreating the moving nightly alias release. The script deleted and pushed the nightly tag manually, then immediately asked the Forgejo releases API to create a release for that just-pushed tag; Forgejo returned HTTP 500 and left the alias release missing.
Solution
Keep immutable nightly tags on the existing annotated-tag path, but change the moving nightly alias path to delete the old release/tag, wait until the tag is absent, and let the Forgejo releases API create the replacement release and tag in one request. This avoids the manual push/release API race for the moving alias.
Verification
6b1b959a7a39357e87b545f9f3c64623a0aa66e4.bash -n scripts/forgejo-release.shgit diff --checknix develop .#ci --command just lint