From 8388899481f6c28f7e515fd92e1be4fba2410ea3 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sun, 31 Dec 2023 00:42:47 -0600 Subject: [PATCH] Actions: Write new version info without the leading 'v' --- src/write_version_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write_version_data.py b/src/write_version_data.py index 7be5006bd..6ee512b28 100644 --- a/src/write_version_data.py +++ b/src/write_version_data.py @@ -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)