Skip to content

Commit

Permalink
Actions: Write new version info without the leading 'v'
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelcortez committed Dec 31, 2023
1 parent acc1717 commit 8388899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/write_version_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
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)
Expand Down

0 comments on commit 8388899

Please sign in to comment.