Replies: 7 comments
-
Hey @ivan-sre, I am not quite sure what you are asking. The only time changes are actually checked for is when a |
Beta Was this translation helpful? Give feedback.
-
Hello @PaulHatch! |
Beta Was this translation helpful? Give feedback.
-
No, this action looks for the previous version and increases that by a single version increment. You can enable bump each commit where each new commit will increment the version as if it were tagged, but in any case with any configuration, rerunning the action on the same commit on the same repo should always produce the same result. There is no state save between runs, the Git repo itself is the source of truth. I am not sure why you are getting this message, that is logged when the value of |
Beta Was this translation helpful? Give feedback.
-
Hi @PaulHatch ! I guess I know why I got the message "No changes detected for this commit" - I was using version "5.0.2" instead of "5.0.3", sorry for that. The approach "same commit" => "same result" is good for most of cases, but not always.
So, if you decide to add this "small" feature - it will be really cool. Anyway, thank you! Regards, |
Beta Was this translation helpful? Give feedback.
-
Hey @ivan-sre, glad you find it useful. So adding a feature like this definitely goes against the grain of how the action currently works, and from the perspective of your user they would see gaps whenever you did this, e.g. the release list could be HOWEVER, there's nothing at all stopping you from using other information to create your semver label, for example Alternately if you really were set on incrementing the version, you can just tag it, the next build will pick up the latest (highest) tag. Since there is nothing to calculate, I suppose you'd always increment the patch value, and on the next run the action will pick it up and start from there. |
Beta Was this translation helpful? Give feedback.
-
Hi @PaulHatch I also need to have tags to be added when no new commit is found. I tried the alternate approach which you mentioned here where I increment the tag and update it. But when the build is run next time still the old tag is picked up not the highest. |
Beta Was this translation helpful? Give feedback.
-
It should be picking up the highest version. For example this test passes:
Could you provide a test case to demonstrate your use case? You can find instructions on creating a test case in the contributing guide. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to "force" the version generation in case "No changes detected for this commit"?
Thanks,
Ivan
Beta Was this translation helpful? Give feedback.
All reactions