-
Notifications
You must be signed in to change notification settings - Fork 63
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
version_from_branch
usage
#136
Comments
With There is a method called Regarding the warning, that is indicating that 1 tag was returned, but it was not considered a valid version tag and was ignored, for example you have set the |
I will enable debug mode for all future workflow runs but I'm not sure I could reproduce the exact same issue cause I've already altered tags in the repo manually. I'll keep running our workflows with the debug mode on and if it happens again, I'll update the issue with all info that I'll gather. |
using paulhatch/[email protected] I was having the same warning: updating the checkout action to the latest seem to have worked name: Checkout code |
Hi,
First of all I'd like to thank you for a very helpful action that I use everywhere I can.
Version 5.3.0 introduced branch-based versioning mode which I use in a repo that uses release branches.
We create a branch from our default branch named
release/MAJOR.MINOR
where MAJOR and MINOR are corresponding parts of version that we expect to release from this branch and then start a release workflow that resolves version using your action and then creates a GitHub release.Today I started this release workflow from
release/11.2
branch and was very surprised to discover that the resolved version was12.0.0
while I've expected it to be11.2.0
.This is the output of Checkout action that shows the branch name:
/usr/bin/git checkout --progress --force -B release/11.2 refs/remotes/origin/release/11.2
And here are the inputs I use for your action:
And here's a warning I got for this run but I'm not sure what it means:
Warning: None of the 1 tags(s) found were valid version tags for the present configuration. If this is unexpected, check to ensure that the configuration is correct and matches the tag format you are using.
Could you please explain how to correctly configure this action to use branch-based versioning?
I'm also interested in a way to use this action in a flow that has a default branch and release branches from it. So far I came up with a workaround to create
MAJOR.MINOR.0
tags on a commit I createrelease/MAJOR.MINOR
branch from so that this action can resolve future versions based on this tag but I'm not sure this is a best option.The text was updated successfully, but these errors were encountered: