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

This commit is contained in:
2026-03-16 22:30:59 +03:00
parent 84eee49aa7
commit 61366d1622
+5 -1
View File
@@ -10,6 +10,8 @@ import json
from executor.engine import Engine
from executor.core import config
from executor.handlers.config import handle_config
def json_read(filename):
with open(filename, 'r') as fd:
@@ -21,6 +23,8 @@ def handle_git(args):
for key in os.environ:
if key.startswith('INPUT_'):
print(key, os.getenv(key))
handle_config(config)
DEBUG = True
ACTIONS_RUNTIME_TOKEN = os.getenv('ACTIONS_RUNTIME_TOKEN')
INPUT_TOKEN = os.getenv('INPUT_TOKEN')
@@ -81,6 +85,6 @@ def handle_git(args):
print(cmd)
exec_cmd(cmd)
cmd = 'git -C ' + INPUT_PATH + ' checkout ' + INPUT_REF
cmd = 'git -C ' + INPUT_PATH + ' checkout ' + config['ref']
print(cmd)
exec_cmd(cmd)