Skip to content

Commit

Permalink
update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Aug 28, 2024
1 parent 0467693 commit e660d97
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions apps_ci/scripts/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import yaml

from apps_exceptions import AppDoesNotExist, ValidationErrors
from apps_ci.version_bump import is_valid_bump_type, map_renovate_bump_type, bump_version, rename_versioned_dir
from apps_ci.version_bump import map_renovate_bump_type, bump_version, rename_versioned_dir


def update_app_version(app_path: str, bump_type: str) -> None:
Expand All @@ -24,10 +24,6 @@ def update_app_version(app_path: str, bump_type: str) -> None:
app_config = yaml.safe_load(f.read())

bump_type = map_renovate_bump_type(bump_type)
if not is_valid_bump_type(bump_type):
verrors.add('app_metadata', f'Invalid bump type {bump_type!r}')

verrors.check()

old_version = app_config['version']
app_config['version'] = bump_version(old_version, bump_type)
Expand Down

0 comments on commit e660d97

Please sign in to comment.