-
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
Bump each commit false seems to be ignored #144
Comments
By automatically tagging each commit with the version, you are causing the version to be incremented on the next commit. |
Thank you for responding @PaulHatch However, it doesn't seem to make any difference if I have the tagging of each commit or not. I tried to modify my workflow to only run the semantic-version to see if there's a new version warranted or not. This should have said no new version detected, as the commit does not contain any of the keywords for MAJOR or MINOR, nor do I have the bump on every commit enabled. Here is the modified workflow that simply runs on pushes, pulls the commits and runs semantic-version. `name: Update csproj version on: jobs:
` Am I using this right, or is this just expected behavior? |
Made a duplicate of this and now discovered there's an issue open for it already.
And it actually means something else? I've also set the UPD: @Andreas1331 , the author of this action included a more detailed explanation on how this is supposed to work in the other issue: #154 (comment) |
As of Version 5.3.0 the argument "bump_each_commit: false" does not seem to ignore commits that do not match either major or minor pattern.
Any commit not matching major or minor will cause the patch to increase, but it is my understand this argument is suppose to filter these and ignore them.
I have a very simple GitHub Action Workflow setup that generates a new tag version, and creates a tag. I am using the default options, and every commit has an empty body and a simple title with either (MAJOR), (MINOR) or random characters to create commits that should be ignore.
Every push I make causes the patch to increment, and I'm using the format MAJOR.MINOR.PATCH and also all major commits causes MINOR to go up it seems. Am I using this wrong?
`
on:
push:
branches:
- main # Adjust branch name as needed
workflow_dispatch:
jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
`
The text was updated successfully, but these errors were encountered: