-
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
Fails to read/parse existing version #1
Comments
Is the repo you're running this on public? |
@PaulHatch Unfortunately, no. |
OK, well if you can provide some idea of the structure of this repository? The index.test.js test file has a few tests designed to test picking up the version tag, Tags start new version and Version pulled from last release branch, can you see what the difference might be? Also, what does your remote setup look like? This action assumes there is at most one remote called origin since this is the result of running |
I managed to reproduce the issue in https://github.com/chlirre/versioning I started by creating a release - Then this |
It seems that the latest version of the checkout action does not include tags. Using |
|
NP, on further thought I don't think it is without the scope of this action to be modifying the repository. I am adding a warning message if no tags are present. |
It might be worth putting this in the readme, or updating the warning to include a message about private repos. I was just caught out by this issue. 😊 |
Yes, I considered trying to detect in the action and show a warning and still might add to a future version. There's a note at the bottom of the readme with instruction on how to make this work for v2. The repository does not need to be public, I only mentioned it above to see if I could take a look so that I could troubleshoot the issue. |
I keep getting
Version is 0.0.1+0
when using this action.I ran https://github.com/PaulHatch/semantic-version/blob/master/index.js#L59-L66 locally as
and got
Output when running the action:
The text was updated successfully, but these errors were encountered: