Skip to content

Commit

Permalink
Fix unescaped GIT_TAG variable
Browse files Browse the repository at this point in the history
  • Loading branch information
drojf committed Nov 20, 2020
1 parent a140374 commit ac599eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions travis_build_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ac599eb

Please sign in to comment.