mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Don't use ::set-env in python-setup
Is now deprecated as described in https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
This commit is contained in:
@@ -142,5 +142,8 @@ if __name__ == "__main__":
|
||||
python_executable_path = install_packages(codeql_base_dir)
|
||||
|
||||
if python_executable_path is not None:
|
||||
# see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
|
||||
env_file = open(os.environ["GITHUB_ENV"], mode="at")
|
||||
|
||||
print("Setting CODEQL_PYTHON={}".format(python_executable_path))
|
||||
print("::set-env name=CODEQL_PYTHON::{}".format(python_executable_path))
|
||||
print("CODEQL_PYTHON={}".format(python_executable_path), file=env_file)
|
||||
|
||||
Reference in New Issue
Block a user