8000 Adding support for DEFAULT_BUMP=none by dmerrick · Pull Request #59 · anothrNick/github-tag-action · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Adding support for DEFAULT_BUMP=none #59

8000
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

Merged
merged 4 commits into from
May 5, 2020

Conversation

dmerrick
Copy link
Contributor

This addresses #56

By setting DEFAULT_BUMP=none, automatic bumping will be disabled. You must provide #major/#minor/#patch to your git commits to trigger the version bump.

@dmerrick dmerrick marked this pull request as ready for review April 30, 2020 20:33
entrypoint.sh Outdated
function default-bump {
if [ "$default_semvar_bump" == "none" ]; then
echo "Default bump was set to none. Skipping..."
return
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this exit 0 here? Will a return quit the script early or just return from the function? (I'm not much of a bash expert)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose we could do exit 0 here. It comes down to if you want the rest of the script to run if the bump was disabled.

Looking through that, it seems like we probably don't want the rest of the script to run, so an exit will work

Copy link
Owner
@anothrNick anothrNick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@anothrNick anothrNick merged commit c170e78 into anothrNick:master May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0