Repository navigation
Move the v0 tag to each new stable release - #15
Merged
Merged
Conversation
Adds major-tag.yml, which force-moves v0 to the commit of each pushed v0.x.y tag (skipping prereleases, older tags and tags not on main), with a manual run for pointing it at an existing release. publish.yml now only matches v*.*.* so the moving v0 tag never publishes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013ADYoCbEvPjLR7zyqirBSo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by RT · project thread
What
.github/workflows/major-tag.yml: on push of av*.*.*tag (which creating a GitHub release does), force-moves the major tag (v0forv0.x.y,v1forv1.x.y) to that commit usingGITHUB_TOKENwithcontents: write.v0.3.0-beta.1).v0.2.5hotfix tag afterv0.3.0leavesv0onv0.3.0.main, same aspublish.yml.workflow_dispatchwith ataginput, to pointv0at an existing release (e.g.v0.2.0now).publish.ymlnow triggers onv*.*.*instead ofv*, so the movingv0tag can never publish. (Pushes made withGITHUB_TOKENdon't start other workflows anyway, so this is a second guard.)Testing
Ran the tag-moving script locally against a scratch repo with tags
v0.1.0..v0.3.0andv0.4.0-beta.1: moves on newest stable, skips older, skips prerelease, no-op when already in place.Generated by Claude Code