-
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
Specify base version number #68
Comments
There is not currently a way to specify this in the config, though you can just tag any previous commit An "initial version" does seem like a good future feature, I'll keep this open as a future enhancement. Still in this scenario I think you'd better off assigning the previous version tags if possible. After your first release a value included in the build YAML like that isn't going to have much meaning. |
@PaulHatch It doesn't seem to be finding my existing tags. Is this based on branch for searching? Our branches are no the norm. We have a prerelease branch that we make tags for. It doesn't seem to be finding my 2.0.1 tag. Is there something I should be doing to help it locate our tags in the repo? |
If your tag is just
Aside from that it should be able to find the tag so long as the commit it is on is merged. The command it would use with this configuration would look like this |
@PaulHatch does this only work on the beta? maybe thats my issue it is v2.0.1 and I have the prefix as v . I'm using v4.0.2 of your tool |
No, this has been the behavior from the beginning--one other thing to check for is that you are pulling enough history to include the tag. The default behavior of actions/checkout does not include the history starting in v2. |
@PaulHatch thanks for your quick answers I'll look and see what i'm doing wrong |
@PaulHatch It's still not picking up my "v2.0.1" can you look at my code and maybe i'm doing something wrong
|
I see this warning: No tags are present for this repository. If this is unexpected, check to ensure that tags have been pulled from the remote. tried with fetch depth of 0 and 2 I have 6 tags in this private repo I ran a step before your tool "git tag" and it finds all tags, so i'm not sure why the tools says not found |
@PaulHatch Here''s what I found out. HEAD is not showing the tags since we specify to a specific branch `Run paulhatch/[email protected] Warning: No tags are present for this repository. If this is unexpected, check to ensure that tags have been pulled from the remote. I think that's correct? I assume then once I create a PR with the word MINOR the version will be incremented. |
Currently only the commit message is used to determine the version type. There is an open enhancement ticket for this which is currently planned for v5.1.0. The branch name should generally be left alone, assuming you are interested in getting a version for the current HEAD position, which is pretty much always going to be the case. That warning message indicates that when attempting to determine the previous release, no tag was found. To fix this ensure that:
|
Is it possible to specify the base version number. For instance, if the pre-existing tagged version before using this tool was 2.0.1. Can I specify that in the yml to use that as the base?
The text was updated successfully, but these errors were encountered: