Fixing deploy script

This commit is contained in:
Martin Bauer 2023-10-02 20:35:18 +02:00
parent 4d77d9e328
commit 024a9bf692
1 changed files with 3 additions and 4 deletions

View File

@ -51,11 +51,10 @@ def version_number_from_git(tag_prefix='release/', sha_length=10, version_format
"git status --untracked-files=no -s")) > 0
if int(commits_since_tag) == 0:
version_string = latest_release
version_string = str(latest_release)
else:
next_version = increment_version(latest_release)
version_string = version_format.format(
version=next_version, commits=commits_since_tag, sha=sha)
version_string = version_format.format(version=next_version, commits=commits_since_tag, sha=sha)
if is_dirty:
version_string += ".dirty"
@ -78,7 +77,7 @@ def read_app_description_from_segment(segment):
def patch_app_description_in_segment(segment, version, project_name, time, date):
assert len(version) < 32
#assert len(version) < 32
assert len(project_name) < 32
assert len(time) < 16
assert len(date) < 16