use commit hash as version number if not on a tagged release

This commit is contained in:
vabene1111
2023-12-16 08:09:18 +01:00
parent 04b4f552f8
commit 6a7a22626e
2 changed files with 4 additions and 2 deletions

View File

@@ -71,4 +71,6 @@ except BaseException:
with open('cookbook/version_info.py', 'w+', encoding='UTF-8') as f:
print(f"writing version info {version_info}")
if not tandoor_tag:
tandoor_tag = tandoor_hash
f.write(f'TANDOOR_VERSION = "{tandoor_tag}"\nTANDOOR_REF = "{tandoor_hash}"\nVERSION_INFO = {version_info}')