This commit is contained in:
2025-03-30 20:17:22 +03:00
parent 5215c01fd8
commit 771f0c1ed5

View File

@@ -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 + '/' + \