Actions: Write new version info without the leading 'v'

This commit is contained in:
Manuel Cortez 2023-12-31 00:42:47 -06:00
parent acc17170f9
commit 8388899481
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

@ -5,7 +5,7 @@ import os
from codecs import open from codecs import open
print("Writing version data for update...") print("Writing version data for update...")
new_version = os.environ.get("GITHUB_REF_NAME") new_version = os.environ.get("GITHUB_REF_NAME")[1:]
file = open("application.py", "r", encoding="utf-8") file = open("application.py", "r", encoding="utf-8")
lines = file.readlines() lines = file.readlines()
lines[-1] = 'version = "{}"'.format(new_version) lines[-1] = 'version = "{}"'.format(new_version)