mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 22:40:09 +01:00
more obvious handling of tag and push
This commit is contained in:
parent
d46d8f075a
commit
fe4b381b5b
3 changed files with 9 additions and 6 deletions
|
|
@ -214,8 +214,10 @@ def _bump(cfg: config.Config, new_version: str, allow_dirty: bool = False) -> No
|
|||
|
||||
_vcs.commit(f"bump version to {new_version}")
|
||||
|
||||
if cfg.tag:
|
||||
if cfg.commit and cfg.tag:
|
||||
_vcs.tag(new_version)
|
||||
|
||||
if cfg.commit and cfg.tag and cfg.push:
|
||||
_vcs.push(new_version)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue