From 771f0c1ed54760f81e3ee21184d73243182f0d48 Mon Sep 17 00:00:00 2001 From: RemiZOffAlex Date: Sun, 30 Mar 2025 20:17:22 +0300 Subject: [PATCH] Update --- execute.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/execute.py b/execute.py index 68dfe57..5d96852 100755 --- a/execute.py +++ b/execute.py @@ -10,6 +10,7 @@ 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') +GITHUB_REF = os.getenv('GITHUB_REF') def escape(text): return '"' + text + '"' @@ -42,15 +43,22 @@ os.popen(cmd) cmd = 'git remote add origin ' + GITHUB_SERVER_URL + '/' + GITHUB_REPOSITORY os.popen(cmd) +cmd = 'git fetch --depth 1 origin ' + GITHUB_REF +os.popen(cmd) + +cmd = 'ls -la' +os.popen(cmd) +print(result.read()) + # cmd = 'git config list --local' # print(cmd) # result = os.popen(cmd) # print(result.read()) -# cmd = 'git config list --global' -# print(cmd) -# result = os.popen(cmd) -# print(result.read()) +cmd = 'git config list --global' +print(cmd) +result = os.popen(cmd) +print(result.read()) cmd = 'git clone ' + \ GITHUB_SERVER_URL + '/' + \