Skip to content

Commit e0f7838

Browse files
authored
Merge branch 'main' into daverlo/python-windows
2 parents 7d1f309 + a41d1bd commit e0f7838

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ on:
3131
# │ │ │ │ │
3232
# │ │ │ │ │
3333
# * * * * *
34-
- cron: '0 0 * * 0'
34+
- cron: '30 1 * * 0'
3535

3636
jobs:
3737
CodeQL-Build:

python-setup/auto_install_packages.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,5 +173,8 @@ def install_packages(codeql_base_dir) -> Optional[str]:
173173
python_executable_path = install_packages(codeql_base_dir)
174174

175175
if python_executable_path is not None:
176+
# see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
177+
env_file = open(os.environ["GITHUB_ENV"], mode="at")
178+
176179
print("Setting CODEQL_PYTHON={}".format(python_executable_path))
177-
print("::set-env name=CODEQL_PYTHON::{}".format(python_executable_path))
180+
print("CODEQL_PYTHON={}".format(python_executable_path), file=env_file)

python-setup/tests/from_python_exe.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python3
22

33
import sys
4+
import os
45
import subprocess
56
from typing import Tuple
67

@@ -24,8 +25,11 @@ def get_details(path_to_python_exe: str) -> Tuple[str, str]:
2425
if __name__ == "__main__":
2526
version, import_path = get_details(sys.argv[1])
2627

28+
# see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
29+
env_file = open(os.environ["GITHUB_ENV"], mode="at")
30+
2731
print("Setting LGTM_PYTHON_SETUP_VERSION={}".format(version))
28-
print("::set-env name=LGTM_PYTHON_SETUP_VERSION::{}".format(version))
32+
print("LGTM_PYTHON_SETUP_VERSION={}".format(version), file=env_file)
2933

3034
print("Setting LGTM_INDEX_IMPORT_PATH={}".format(import_path))
31-
print("::set-env name=LGTM_INDEX_IMPORT_PATH::{}".format(import_path))
35+
print("LGTM_INDEX_IMPORT_PATH={}".format(import_path), file=env_file)

0 commit comments

Comments
 (0)