This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
__author__ = 'RemiZOffAlex'
|
__author__ = 'RemiZOffAlex'
|
||||||
__email__ = 'remizoffalex@mail.ru'
|
__email__ = 'remizoffalex@mail.ru'
|
||||||
|
|
||||||
|
import json
|
||||||
|
|
||||||
from os import getenv
|
from os import getenv
|
||||||
|
|
||||||
|
|
||||||
def handle_config(config):
|
def handle_config(config):
|
||||||
INPUT_REF = getenv('INPUT_REF')
|
INPUT_REF = getenv('INPUT_REF')
|
||||||
if len(INPUT_REF)==0:
|
if len(INPUT_REF)==0:
|
||||||
@@ -12,4 +15,5 @@ def handle_config(config):
|
|||||||
|
|
||||||
config['github.event.path'] = getenv('GITHUB_EVENT_PATH')
|
config['github.event.path'] = getenv('GITHUB_EVENT_PATH')
|
||||||
with open(config['github.event.path'], 'r') as fd:
|
with open(config['github.event.path'], 'r') as fd:
|
||||||
print(fd.readlines())
|
data = json.load(fd)
|
||||||
|
print(data)
|
||||||
|
|||||||
Reference in New Issue
Block a user