Skip to content

Commit

Permalink
Merge branch 'dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh authored Jan 11, 2025
2 parents 045f38f + cafe283 commit 45c3181
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion automation/script/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -4763,7 +4763,7 @@ def docker(self, i):
(docker_os_version) (str): force docker OS version (default: 22.04)
(docker_image_tag_extra) (str): add extra tag (default:-latest)
(docker_cm_repo) (str): force CM automation repository when building Docker (default: cm4mlops)
(docker_cm_repo) (str): force CM automation repository when building Docker (default: mlperf-automations)
(docker_cm_repos)
(docker_cm_repo_flags)
Expand Down
6 changes: 1 addition & 5 deletions script/push-mlperf-inference-results-to-github/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ def preprocess(i):
p = parse(repo)
if env.get('CM_GITHUB_PAT', '') != '':
token = env['CM_GITHUB_PAT']
if token == "PAT":
env['CM_GIT_PUSH_CMD'] = r"""git push https://x-access-token:\$PAT@""" + \
f"""{p.host}/{p.owner}/{p.repo}"""
else:
env['CM_GIT_PUSH_CMD'] = F"""git push https://x-access-token:{env['CM_GITHUB_PAT']}@{p.host}/{p.owner}/{p.repo}"""
env['CM_GIT_PUSH_CMD'] = f"""git push https://x-access-token:{env['CM_GITHUB_PAT']}@{p.host}/{p.owner}/{p.repo}"""

return {'return': 0}

Expand Down
3 changes: 2 additions & 1 deletion script/push-mlperf-inference-results-to-github/run.bat
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ git commit -a -m "%CM_MLPERF_RESULTS_REPO_COMMIT_MESSAGE%"

if defined CM_MLPERF_INFERENCE_SUBMISSION_DIR call %CM_SET_REMOTE_URL_CMD%

git push
echo "%CM_GIT_PUSH_CMD%"
%CM_GIT_PUSH_CMD%

REM Check if the previous command was successful
if %errorlevel% neq 0 exit /b %errorlevel%

0 comments on commit 45c3181

Please sign in to comment.