This commit is contained in:
2025-03-30 05:14:03 +03:00
parent 6404f99981
commit 9cf3132280

View File

@@ -23,7 +23,7 @@ base64_string = 'AUTHORIZATION: basic ' + base64_bytes.decode("utf-8")
key = 'http.'+GITHUB_SERVER_URL+'/.extraheader' key = 'http.'+GITHUB_SERVER_URL+'/.extraheader'
value = base64_string value = base64_string
cmd = 'git config --global ' + key + ' ' + escape(value) cmd = 'git config --global ' + key + ' ' + value
result = os.popen(cmd) result = os.popen(cmd)
key = 'url.'+GITHUB_SERVER_URL+'/.insteadOf' key = 'url.'+GITHUB_SERVER_URL+'/.insteadOf'
@@ -34,7 +34,6 @@ key = 'url.https://'+INPUT_TOKEN+':x-oauth-basic@codex.r10x.net'+'/.insteadOf'
key = 'url.https://'+ACTIONS_RUNTIME_TOKEN+':x-oauth-basic@codex.r10x.net'+'/.insteadOf' key = 'url.https://'+ACTIONS_RUNTIME_TOKEN+':x-oauth-basic@codex.r10x.net'+'/.insteadOf'
value = 'git@"'+base64_string+'"' value = 'git@"'+base64_string+'"'
cmd = 'git config --global ' + escape(key) + ' ' + escape(GITHUB_SERVER_URL) cmd = 'git config --global ' + escape(key) + ' ' + escape(GITHUB_SERVER_URL)
print(cmd)
result = os.popen(cmd) result = os.popen(cmd)
# cmd = 'git config list --local' # cmd = 'git config list --local'