-
Notifications
You must be signed in to change notification settings - Fork 383
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
Manual bumping is broken #232
Comments
Hey @jonavos can you paste an example of the manual bumping implementation workflow you are using? |
I mean to fix it I need to understand what approach are you taking for merging your code and |
Alternatively if the default_branch is not being detected because of non PR use you can set the default branch as env var
That should get the history. But also we can add some extra checks if $GITHUB_BASE_REF is empty or null to report to the user to define the var |
cc @sammcj as fyi |
Thanks for looking into this. We bump the patch version automatically every main branch build, unless the PR has a Here is the output from the build that didn't get minor bumped when expected. (I've clipped some text for confidentially reasons.)
And the
Let me know if you need any more info. I will set Thanks again. |
Can you try with version 1.58 and report back if the problem persists? The problem is the empty default_branch in non PRs var addressed by pr #235 |
Thanks for passing the logs to confirm this. |
Thanks for pushing that fix. Unfortunately, the problem still persists with our workflow. This is because after the squash commit to main the action will run For now we can work around this by reverting to the old behaviour with However it would be better to do something like Again, I don't know how that would play with your PR based workflow. |
@sammcj if you have any ideas how to can increase the testing for prs vs non-prs |
@sbe-arg thank you. We will move our workflows to |
The this commit has broken manual bumping.
This is because
$GITHUB_BASE_REF
is only set for PRs, otherwise it is empty. This means that${default_branch} == ""
which leads to evaluatinghistory_type["full"]="$(git log ..HEAD --format=%B)"
and therefore no full history to check for manual bumping tags.A quick check suggests that
$GITHUB_REF
may be what was intended. See github actions environment variables. However I can't say if it will work in all cases, such as PRs.The text was updated successfully, but these errors were encountered: