Skip to content

Commit 166fc6d

Browse files
committed
Update customize.py
1 parent 9244d88 commit 166fc6d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

script/push-mlperf-inference-results-to-github/customize.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ def preprocess(i):
3737
if env.get('CM_GITHUB_PAT', '') != '':
3838
token = env['CM_GITHUB_PAT']
3939
if token == "PAT":
40-
env['CM_SET_REMOTE_URL_CMD'] = r"""git remote set-url origin https://${PAT}""" + \
41-
f"""@{p.host}/{p.owner}/{p.repo}"""
40+
env['CM_GIT_PUSH_CMD'] = r"""git push https://x-access-token:\$PAT@"""+f"""{p.host}/{p.owner}/{p.repo}"""
4241
else:
43-
env['CM_SET_REMOTE_URL_CMD'] = f"""git remote set-url origin https://{token}@{p.host}/{p.owner}/{p.repo}"""
42+
env['CM_GIT_PUSH_CMD'] = F"""git push https://x-access-token:{env['CM_GITHUB_PAT']}@{p.host}/{p.owner}/{p.repo}"""
4443

4544
return {'return': 0}
4645

0 commit comments

Comments
 (0)