mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Actions: Write new version info without the leading 'v'
This commit is contained in:
parent
acc17170f9
commit
8388899481
@ -5,7 +5,7 @@ import os
|
||||
from codecs import open
|
||||
|
||||
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")
|
||||
lines = file.readlines()
|
||||
lines[-1] = 'version = "{}"'.format(new_version)
|
||||
|
Loading…
Reference in New Issue
Block a user