-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check tag exists on main on release #250
Conversation
Thanks @jku for pointing this out! Inspo from https://stackoverflow.com/questions/63745613/how-to-get-a-branch-name-on-github-action-when-push-on-a-tag, to use My bash foo is horrible, so before I copy this to all of the release workflows, wanted to get feedback. |
Thinking out loud:
(This would be a bigger change, but I think we could solve both of these problems by switching from tag events to |
Yea, to generalize this check, it's really "am i pushing from a protected branch", assuming we create X.Y branches that are protected for previous releases. Sticking with main for now is probably sufficient, unless there's a straightforward way to know if the branch is protected.
Ugh, good point, I think you're right that the action would run based on what's in the tagged release, invalidating this check. Would switching to |
This mitigates the risk of a tag being generated and pushed off of a branch. Signed-off-by: Hayden Blauzvern <[email protected]>
Signed-off-by: Hayden Blauzvern <[email protected]>
7e85003
to
867ea60
Compare
Adding a few others for thoughts: @kommendorkapten @loosebazooka |
The other option is to simply trigger releases manually from what's in main. |
Yay to using environments (and prevent self-review) as it's a good way to force manual approval before a workflow is run. We don't release that often, and adding a a manual control is worth it I believe. Making the switch from tags to release events seems solid. I'm thinking if we should keep workflows for tags for alfa, beta or pre-releases though, as it can be good testing without requiring extra assistance. |
#254 to track, closing this out. |
This mitigates the risk of a tag being generated and pushed off of a branch.
Summary
Release Note
Documentation