use commit hash as version number if not on a tagged release
This commit is contained in:
parent
04b4f552f8
commit
6a7a22626e
@ -1,3 +1,3 @@
|
|||||||
TANDOOR_VERSION = ""
|
TANDOOR_VERSION = ""
|
||||||
TANDOOR_REF = "abf8f791360b2bc4a5c7d011877668679bcbb3f2"
|
TANDOOR_REF = ""
|
||||||
VERSION_INFO = [{'name': 'Tandoor ', 'version': "commit abf8f791360b2bc4a5c7d011877668679bcbb3f2\nMerge: 4723a7ec fd028047\nAuthor: vabene1111 \nDate: Sun Dec 3 14:10:28 2023 +0100\n\n Merge branch 'develop'\n \n # Conflicts:\n # docs/faq.md\n", 'website': 'https://github.com/TandoorRecipes/recipes', 'commit_link': 'https://github.com/TandoorRecipes/recipes/commit/abf8f791360b2bc4a5c7d011877668679bcbb3f2', 'ref': 'abf8f791360b2bc4a5c7d011877668679bcbb3f2', 'branch': 'HEAD', 'tag': ''}]
|
VERSION_INFO = []
|
||||||
|
@ -71,4 +71,6 @@ except BaseException:
|
|||||||
|
|
||||||
with open('cookbook/version_info.py', 'w+', encoding='UTF-8') as f:
|
with open('cookbook/version_info.py', 'w+', encoding='UTF-8') as f:
|
||||||
print(f"writing version info {version_info}")
|
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}')
|
f.write(f'TANDOOR_VERSION = "{tandoor_tag}"\nTANDOOR_REF = "{tandoor_hash}"\nVERSION_INFO = {version_info}')
|
||||||
|
Loading…
Reference in New Issue
Block a user