ci: explicit refspecs in dev-or-main fetch #141
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_whiteboard!141
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_mik_release_branch_gate_fix"
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?
Follow-up to PR #140. The dev-or-main guard was structurally correct but assumed actions/checkout@v4-style remote tracking. Whiteboard's checkout is a manual git clone --depth 100 --branch which creates zero refs/remotes/* refs; a bare git fetch origin development main then writes to FETCH_HEAD only, so git branch -r --contains has nothing to match and the guard rejects every tag.
Symptom: v0.1.0-rc1 (tag commit
a8059f7, HEAD of development at PR #140 merge) failed with: ERROR: Tag v0.1.0-rc1 is not on development or main. Aborting.Fix: explicit refspecs on the fetch so origin/development and origin/main are materialized.
Verified locally by reproducing the workflow's clone+fetch sequence in /tmp; with the explicit refspecs git branch -r --contains correctly returns origin/development for the tag commit.
A simpler long-term alternative is to replace the manual git clone with uses: actions/checkout@v4 (matches hero_proxy / hero_aibroker exactly). Deferred to a separate PR — this surgical one-line fix unblocks the release pipeline today.
Signed-off-by: mik-tf