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 75c8f77 commit f4f2345
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/run_with_env_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def main():
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":
if f"{ os.environ.get('ROCM'. '') }" == "true":

Check failure

Code scanning / lintrunner

MYPY/[syntax] Error

f-string: invalid syntax
env_file = f"/tmp/github_env_{ os.environ.get('GITHUB_RUN_ID', '') }"
docker_path = shutil.which("docker")
if not docker_path:
Expand All @@ -71,7 +71,7 @@ def main():
-e RUNNER_ARTIFACT_DIR=/artifacts \
-e RUNNER_DOCS_DIR=/docs \
-e RUNNER_TEST_RESULTS_DIR=/test-results \
--env-file="" \
--env-file=" { 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 f4f2345

Please sign in to comment.