fix(ci): create nightly alias release through api #159

Merged
barrettruth merged 1 commit from fix/nightly-release-alias-api into main 2026-05-04 01:14:36 +00:00
Owner

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

  • Repaired the current nightly alias release through the Forgejo API at 6b1b959a7a39357e87b545f9f3c64623a0aa66e4.
  • Smoke-tested the replacement flow with a temporary release/tag and deleted it afterward.
  • bash -n scripts/forgejo-release.sh
  • git diff --check
  • nix develop .#ci --command just lint
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 - Repaired the current nightly alias release through the Forgejo API at `6b1b959a7a39357e87b545f9f3c64623a0aa66e4`. - Smoke-tested the replacement flow with a temporary release/tag and deleted it afterward. - `bash -n scripts/forgejo-release.sh` - `git diff --check` - `nix develop .#ci --command just lint`
fix(ci): create nightly alias release through api
All checks were successful
Request Review / request_review (pull_request_target) Successful in 6s
Release Metadata / release_metadata (pull_request_target) Successful in 6s
quality / Format (pull_request) Successful in 7s
quality / Lint (pull_request) Successful in 12s
quality / Test (pull_request) Successful in 2m34s
9fb5cedb17
barrettruth deleted branch fix/nightly-release-alias-api 2026-05-04 01:14:36 +00:00
Commenting is not possible because the repository is archived.
No description provided.