This commit is contained in:
2025-03-30 05:21:38 +03:00
parent 1f5d3103f6
commit 3b0b2dea8a

View File

@@ -23,17 +23,17 @@ 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 set --global ' + key + ' ' + escape(value)
result = os.popen(cmd) result = os.popen(cmd)
key = 'url.'+GITHUB_SERVER_URL+'/.insteadOf' key = 'url.'+GITHUB_SERVER_URL+'/.insteadOf'
cmd = 'git config --global ' + escape(key) + ' ' + GITHUB_SERVER_URL cmd = 'git config set --global ' + escape(key) + ' ' + GITHUB_SERVER_URL
key = 'url.'+GITHUB_SERVER_URL+'/.insteadOf' key = 'url.'+GITHUB_SERVER_URL+'/.insteadOf'
key = 'url.https://'+INPUT_TOKEN+':x-oauth-basic@codex.r10x.net'+'/.insteadOf' 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 set --global ' + escape(key) + ' ' + escape(GITHUB_SERVER_URL)
result = os.popen(cmd) result = os.popen(cmd)
# cmd = 'git config list --local' # cmd = 'git config list --local'