Skip to content

Detect the branch from the checkout, not the dispatch ref - #4

Merged
lorisleiva merged 1 commit into
mainfrom
fix/task-branch-detection
Aug 28, 2026
Merged

Detect the branch from the checkout, not the dispatch ref#4
lorisleiva merged 1 commit into
mainfrom
fix/task-branch-detection

Conversation

@lorisleiva

Copy link
Copy Markdown
Member

Third rehearsal finding: workflow_dispatch runs on the repository's default branch, which during a transition is the N.x maintenance branch by design — so the promote's branch assertion read GITHUB_REF_NAME=1.x and refused, even though the workflow's checkout correctly pins main. The cut and promote task scripts now read the branch from the actual checkout (git branch --show-current); the postversion guard keeps its env-first behaviour, which is correct in the push-triggered changesets-action context.

@lorisleiva
lorisleiva merged commit cea174e into main Aug 28, 2026
@lorisleiva
lorisleiva deleted the fix/task-branch-detection branch August 28, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant