From c1df372867b4b42879aa88bc49993f4a666aaf3c Mon Sep 17 00:00:00 2001 From: RemiZOffAlex Date: Sat, 29 Mar 2025 22:24:58 +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 | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/execute.py b/execute.py index 3984d59..0293b89 100755 --- a/execute.py +++ b/execute.py @@ -4,18 +4,13 @@ import os import sys print('EXECUTE') -for key, value in os.environ.items(): - print(f"{key}={value}") +# for key, value in os.environ.items(): +# print(f"{key}={value}") ACTIONS_RUNTIME_TOKEN = os.getenv('ACTIONS_RUNTIME_TOKEN') INPUT_TOKEN = os.getenv('INPUT_TOKEN') GITHUB_SERVER_URL = os.getenv('GITHUB_SERVER_URL') GITHUB_REPOSITORY = os.getenv('GITHUB_REPOSITORY') -print('GITHUB_SERVER_URL:', GITHUB_SERVER_URL) -print('GITHUB_REPOSITORY:', GITHUB_REPOSITORY) -print(ACTIONS_RUNTIME_TOKEN) -print(len(ACTIONS_RUNTIME_TOKEN)) print('#'*80) -print(sys.argv) import base64 sample_string = "x-access-token:" + ACTIONS_RUNTIME_TOKEN @@ -43,17 +38,18 @@ cmd = 'git config list ' cmd = 'git clone ' + \ GITHUB_SERVER_URL + '/' + \ - GITHUB_REPOSITORY + GITHUB_REPOSITORY + ' ' + ' ' print('cmd:', cmd) +print('pwd', os.getcwd()) result = os.popen(cmd) print('result:' , result.read()) -cmd = 'git clone ' + \ - 'https://' + sample_string + '@codex.r10x.net' + '/' + \ - GITHUB_REPOSITORY -print('cmd:', cmd) -result = os.popen(cmd) -print('result:' , result.read()) +# cmd = 'git clone ' + \ +# 'https://' + sample_string + '@codex.r10x.net' + '/' + \ +# GITHUB_REPOSITORY +# print('cmd:', cmd) +# result = os.popen(cmd) +# print('result:' , result.read()) print(f"Encoded string: {base64_string}") print('#'*80)