Skip to content

Commit

Permalink
Minor bug fixes and enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
devqik committed Jun 17, 2023
1 parent 86d578a commit b30d227
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bump_helm_chart_version/bump_chart_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ def increment_patch_version(version):
prev_version_dict = yaml.safe_load(prev_version_chart_file)
prev_version = prev_version_dict['version']
with open(f'{chart_dir}/Chart.yaml', 'r') as f:
current_version = [line.split()[1] for line in f.readlines() if line.startswith('version:')][0]
current_version = [line.split()[1] for line in f.readlines() if line.startswith('version:')][0].strip()

new_version = increment_patch_version(prev_version)
# Echo previous an current versions
# Echo previous and current versions
print(f"The previous version is {prev_version}")
print(f"The current version is {current_version}")

Expand All @@ -79,4 +80,3 @@ def increment_patch_version(version):

if __name__ == '__main__':
sys.exit(main())

0 comments on commit b30d227

Please sign in to comment.