diff --git a/executor/handlers/config.py b/executor/handlers/config.py index 2cd2a3c..ec603c0 100644 --- a/executor/handlers/config.py +++ b/executor/handlers/config.py @@ -1,8 +1,11 @@ __author__ = 'RemiZOffAlex' __email__ = 'remizoffalex@mail.ru' +import json + from os import getenv + def handle_config(config): INPUT_REF = getenv('INPUT_REF') if len(INPUT_REF)==0: @@ -12,4 +15,5 @@ def handle_config(config): config['github.event.path'] = getenv('GITHUB_EVENT_PATH') with open(config['github.event.path'], 'r') as fd: - print(fd.readlines()) + data = json.load(fd) + print(data)