Skip to content

Revert release workflow checkout change#120

Merged
larkly merged 1 commit intomainfrom
revert/release-workflow-dispatch
Mar 31, 2026
Merged

Revert release workflow checkout change#120
larkly merged 1 commit intomainfrom
revert/release-workflow-dispatch

Conversation

@larkly
Copy link
Copy Markdown
Owner

@larkly larkly commented Mar 31, 2026

Summary

Why

The workaround checked out main for workflow_dispatch, which could build code ahead of the intended release point. Tags should be immutable snapshots — the correct fix is to add a repo owner bypass on the tag creation ruleset, then push tags normally.

After merging

Add a bypass for Repository admin (or your user) on the tag ruleset:
Settings > Rules > Rulesets > edit the rule restricting tag creation > add bypass

The CHECKOUT_REF workaround could build from a commit different than
what the tag should represent. Reverting to the original tag-based
checkout. The tag ruleset needs a bypass for the repo owner to allow
tag pushes that trigger the release workflow.
@larkly larkly merged commit 89da537 into main Mar 31, 2026
3 checks passed
@larkly larkly deleted the revert/release-workflow-dispatch branch March 31, 2026 01:04
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