Обновить executor/cli/git.py
All checks were successful
Test Actions / Builder (push) Successful in 24s

This commit is contained in:
2025-10-19 00:29:56 +03:00
parent eea661f26a
commit ce8adfbc7e

View File

@@ -14,6 +14,7 @@ def handle_git(args):
DEBUG = True
ACTIONS_RUNTIME_TOKEN = os.getenv('ACTIONS_RUNTIME_TOKEN')
INPUT_TOKEN = os.getenv('INPUT_TOKEN')
INPUT_REPOSITORY = os.getenv('INPUT_REPOSITORY')
GITHUB_SERVER_URL = os.getenv('GITHUB_SERVER_URL')
GITHUB_REPOSITORY = os.getenv('GITHUB_REPOSITORY')
GITHUB_REF = os.getenv('GITHUB_REF')
@@ -47,7 +48,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 + '/' + GITHUB_REPOSITORY
cmd = 'git remote add origin ' + GITHUB_SERVER_URL + '/' + INPUT_REPOSITORY
exec_cmd(cmd)
cmd = 'git fetch --progress --depth 1 origin ' + GITHUB_REF