Skip to content

Commit

Permalink
Update run_with_env_secrets.py
Browse files Browse the repository at this point in the history
  • Loading branch information
amdfaa authored Dec 5, 2024
1 parent ab82788 commit 75c8f77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/scripts/run_with_env_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ def main():
os.environ[senv] = str(all_secrets.get(sname, ""))
except KeyError as e:
print(f"Could not set {senv} from secret {sname}: {e}")

env_file = f"{ os.environ.get('RUNNER_TEMP', '') }/github_env_{ os.environ.get('GITHUB_RUN_ID', '') }"
if os.environ.get('ROCM'. '') == "true":

Check failure

Code scanning / lintrunner

MYPY/[syntax] Error

invalid syntax
env_file = f"/tmp/github_env_{ os.environ.get('GITHUB_RUN_ID', '') }"
docker_path = shutil.which("docker")
if not docker_path:
run_cmd_or_die(f"bash { os.environ.get('RUNNER_TEMP', '') }/exec_script")
Expand All @@ -69,7 +71,7 @@ def main():
-e RUNNER_ARTIFACT_DIR=/artifacts \
-e RUNNER_DOCS_DIR=/docs \
-e RUNNER_TEST_RESULTS_DIR=/test-results \
--env-file="/tmp/github_env_{ os.environ.get('GITHUB_RUN_ID', '') }" \
--env-file="" \
`# It is unknown why the container sees a different value for this.` \
-e GITHUB_STEP_SUMMARY \
{ ' '.join([ f'-e {v}' for v in secrets_u_names ]) } \
Expand Down

0 comments on commit 75c8f77

Please sign in to comment.