From c9f8de1271a168575bcc5d29f4efb747e40ef4bf Mon Sep 17 00:00:00 2001 From: RemiZOffAlex Date: Sat, 29 Mar 2025 21:46:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20execute.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- execute.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/execute.py b/execute.py index 92f17bb..fb21f32 100755 --- a/execute.py +++ b/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 + '/' + \