Обновить executor/cli/git.py
Some checks failed
Test Actions / Builder (push) Failing after 7s

This commit is contained in:
2025-10-19 01:32:20 +03:00
parent 4a4a636f4c
commit 6daaa44802

View File

@@ -20,6 +20,7 @@ def handle_git(args):
GITHUB_REPOSITORY = os.getenv('GITHUB_REPOSITORY')
GITHUB_REF = os.getenv('GITHUB_REF')
GITHUB_REF_NAME = os.getenv('GITHUB_REF_NAME')
assert ACTIONS_RUNTIME_TOKEN==INPUT_TOKEN, 'token not equal'
def escape(text):
return '"' + text + '"'
@@ -49,7 +50,7 @@ def handle_git(args):
cmd = 'git config set --local ' + escape(key) + ' ' + escape(GITHUB_SERVER_URL)
exec_cmd(cmd)
cmd = 'git remote add origin ' + GITHUB_SERVER_URL + '/' + INPUT_REPOSITORY
cmd = 'git remote add origin ' + GITHUB_SERVER_URL + INPUT_REPOSITORY
exec_cmd(cmd)
cmd = 'git fetch --progress --depth 1 origin ' + GITHUB_REF