We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fae2e0 commit 296ea5dCopy full SHA for 296ea5d
script/push-mlperf-inference-results-to-github/customize.py
@@ -36,11 +36,7 @@ def preprocess(i):
36
p = parse(repo)
37
if env.get('CM_GITHUB_PAT', '') != '':
38
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}"""
+ env['CM_GIT_PUSH_CMD'] = f"""git push https://x-access-token:{env['CM_GITHUB_PAT']}@{p.host}/{p.owner}/{p.repo}"""
44
45
return {'return': 0}
46
0 commit comments