It should be possible to reference reusable workflows by just their major version, like composite actions #130777
-
Select Topic AreaQuestion BodyIf I want to reuse workflows in an organization it's useful to be able to refer to a version tag. But reusable workflows only allow referring to the exact version: It's very useful to be able to refer just to the major version (i.e. v1), instead of needing to specify the exact version (v1.0.0). I want the action to automatically use the last minor and patch from the version I chose. Updating this manually is horrible and going to fall by the wayside eventually. On the other hand, I do want to manually update major versions (i.e. v1 to v2). This is exactly how composite actions work: https://docs.github.com/en/actions/creating-actions/about-custom-actions#good-practices-for-release-management I think reusable workflows should support this as well. Why? Quoting from the github docs on composite actions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can use whatever tag you want when referencing reusable workflows. Those tags ( So if you are creating the git tag v1 --force && git push origin v1 --force I automate this using GitHub actions on new tag creation. |
Beta Was this translation helpful? Give feedback.
You can use whatever tag you want when referencing reusable workflows. Those tags (
v1.0.0
andv1
) are created manually by action authors.So if you are creating the
v1.0.0
tag, you can also create and push thev1
tag too.git tag v1 --force && git push origin v1 --force
I automate this using GitHub actions on new tag creation.