Compare commits

..

2 Commits

Author SHA1 Message Date
Shaun Arman
6d8263c5b5 fix(ci): consolidate all auto-tag changelog fixes
All checks were successful
Test / rust-fmt-check (pull_request) Successful in 1m50s
Test / rust-clippy (pull_request) Successful in 3m8s
Test / frontend-typecheck (pull_request) Successful in 1m44s
Test / frontend-tests (pull_request) Successful in 1m27s
PR Review Automation / review (pull_request) Successful in 5m32s
Test / rust-tests (pull_request) Successful in 4m47s
Three issues addressed together:

1. Race condition (was PR #56): changelog job now CREATES the Gitea
   release rather than assuming build jobs have already created it.
   Build jobs continue to use create-or-skip + upload unchanged.

2. Detached HEAD push: 'git push origin master' fails when HEAD is
   detached (no local branch named master). Changed to 'HEAD:master'.

3. git-cliff tag guard: verify tag is present locally before running
   git-cliff, to fail fast with a clear message rather than silently
   generating a wrong changelog.

4. git commit idiom: replaced 'git commit || echo' (swallows all
   non-zero exit codes including real failures) with an explicit
   'git diff --staged --quiet' guard so set -euo pipefail is not
   undermined.
2026-05-31 16:26:31 -05:00
Shaun Arman
6dbc40ec96 fix(ci): push detached HEAD to master using HEAD:master refspec
Some checks failed
Test / rust-fmt-check (pull_request) Successful in 2m59s
PR Review Automation / review (pull_request) Successful in 6m38s
Test / frontend-typecheck (pull_request) Successful in 1m19s
Test / rust-clippy (pull_request) Successful in 6m18s
Test / frontend-tests (pull_request) Successful in 1m8s
Test / rust-tests (pull_request) Has been cancelled
The changelog job checks out a specific SHA (detached HEAD) then
commits CHANGELOG.md and tries to push with 'git push origin master'.
Since there is no local branch named 'master', git rejects the push
with 'src refspec master does not match any'.

Fix: use 'git push origin HEAD:master' which explicitly maps the
current detached HEAD to the remote master branch regardless of
local branch state.
2026-05-31 16:16:44 -05:00

Diff Content Not Available