Skip to content

Commit d754334

Browse files
committed
Update customize.py
1 parent dd81a92 commit d754334

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ 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_SET_REMOTE_URL_CMD'] = f"""git remote set-url origin https://$\{PAT\}@{p.host}/{p.owner}/{p.repo}"""
4241
else:
4342
env['CM_SET_REMOTE_URL_CMD'] = f"""git remote set-url origin https://{token}@{p.host}/{p.owner}/{p.repo}"""
4443

0 commit comments

Comments
 (0)