This commit is contained in:
+5
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user