Обновить execute.py
This commit is contained in:
14
execute.py
14
execute.py
@@ -4,6 +4,8 @@ import os
|
||||
import sys
|
||||
|
||||
print('EXECUTE')
|
||||
for key, value in os.environ.items():
|
||||
print(f"{key}={value}")
|
||||
ACTIONS_RUNTIME_TOKEN = os.getenv('ACTIONS_RUNTIME_TOKEN')
|
||||
GITHUB_SERVER_URL = os.getenv('GITHUB_SERVER_URL')
|
||||
GITHUB_REPOSITORY = os.getenv('GITHUB_REPOSITORY')
|
||||
@@ -24,18 +26,18 @@ base64_string = 'AUTHORIZATION: basic ' + base64_bytes.decode("utf-8")
|
||||
key = 'http.'+GITHUB_SERVER_URL+'/.extraheader'
|
||||
value = '"'+base64_string+'"'
|
||||
cmd = 'git config --global ' + key + ' ' + value
|
||||
result = os.popen(cmd)
|
||||
print('result:' , result.read())
|
||||
# result = os.popen(cmd)
|
||||
# print('result:' , result.read())
|
||||
|
||||
key = 'url.'+GITHUB_SERVER_URL+'/.insteadOf'
|
||||
value = '"git@'+'codex.r10x.net'+'"'
|
||||
cmd = 'git config --global ' + key + ' ' + GITHUB_SERVER_URL
|
||||
result = os.popen(cmd)
|
||||
print('result:' , result.read())
|
||||
# result = os.popen(cmd)
|
||||
# print('result:' , result.read())
|
||||
|
||||
cmd = 'git config list '
|
||||
result = os.popen(cmd)
|
||||
print('result:' , result.read())
|
||||
# result = os.popen(cmd)
|
||||
# print('result:' , result.read())
|
||||
|
||||
cmd = 'git clone ' + \
|
||||
GITHUB_SERVER_URL + '/' + \
|
||||
|
||||
Reference in New Issue
Block a user