From ac599eb253d72aaa6504899639aa467e5817e17f Mon Sep 17 00:00:00 2001 From: drojf Date: Fri, 20 Nov 2020 22:59:32 +1100 Subject: [PATCH] Fix unescaped GIT_TAG variable --- travis_build_script.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/travis_build_script.py b/travis_build_script.py index 1e513dea..fba6fcf1 100644 --- a/travis_build_script.py +++ b/travis_build_script.py @@ -32,7 +32,8 @@ EMBEDDED_PYTHON_ZIP_URL = "https://www.python.org/ftp/python/3.7.7/python-3.7.7-embed-win32.zip" # Required Environment Variables -GIT_TAG = os.environ.get("GITHUB_REF") # Github Tag / Version info +GIT_REF = os.environ.get("GITHUB_REF") # Github Tag / Version info +GIT_TAG = GIT_REF.split('/')[-1] def call(args, **kwargs): print("running: {}".format(args)) @@ -180,7 +181,7 @@ def ignore_filter(folderPath, folderContents): with open(os.path.join(staging_folder, 'build_info.json'), 'w', encoding='utf-8') as build_info_file: json.dump({ "build_date": f"{datetime.datetime.now()}", - "git_tag": f"GIT_TAG", + "git_tag": f"{GIT_TAG}", }, build_info_file, indent="\t", sort_keys=True) # now, copy the staged files into each os's bootstrap folder's install_data directory