Skip to content

Commit 296ea5d

Browse files
committed
Update customize.py
1 parent 8fae2e0 commit 296ea5d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ def preprocess(i):
3636
p = parse(repo)
3737
if env.get('CM_GITHUB_PAT', '') != '':
3838
token = env['CM_GITHUB_PAT']
39-
if token == "PAT":
40-
env['CM_GIT_PUSH_CMD'] = r"""git push https://x-access-token:\$PAT@""" + \
41-
f"""{p.host}/{p.owner}/{p.repo}"""
42-
else:
43-
env['CM_GIT_PUSH_CMD'] = F"""git push https://x-access-token:{env['CM_GITHUB_PAT']}@{p.host}/{p.owner}/{p.repo}"""
39+
env['CM_GIT_PUSH_CMD'] = f"""git push https://x-access-token:{env['CM_GITHUB_PAT']}@{p.host}/{p.owner}/{p.repo}"""
4440

4541
return {'return': 0}
4642

0 commit comments

Comments
 (0)