-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
How do I match GitHub action with stability policy? #3264
Comments
You can just set version argument in the action to |
@jack1142 Ok, so this example adapted from the docs would work. Thanks!
|
I don't believe that will work right now since if the version option is provided |
Can we add anything to our docs to make the clearer? If so PR will be accepted. |
I assumed that it works based on the documentation in action.yml which says it uses PEP 440 version specifier, my bad for not checking the code :-) |
Ugh that's unfortunate. Can't really break the pre-existing usages of the action though, the default has to be included. |
Reopened pending #3265 |
I think this issue can be closed since the PR was merged recently |
Is this related to a problem? Please describe.
The pages on stability policy and GitHub Actions are very clear. However, I don't think it's possible to enforce stability with GitHub actions.
Describe the solution you'd like
I would like to add
uses: psf/black@2022
in my GitHub action, and have this be equivalent toblack ~= 22.0
(orblack < 23
) in the developer toolchain. I believe this would require adding a2022
tag, updating it on every release, then adding a2023
tag for the first23.x
release.Describe alternatives you've considered
~= 22.0
. When developer toolchain is updated to~= 23.0
, re-pin in GitHub action. Downside: chance of discrepancy between 22.x (GitHub) and 22.y (toolchain).--preview
in November/December) require even more coordination.Additional context
This is a professional team, so the goal is to eliminate non-critical technical alerts. It could be that the final alternative is the only viable solution. Or there's a simple solution I have missed :D
The text was updated successfully, but these errors were encountered: