diff --git a/executor/handlers/config.py b/executor/handlers/config.py new file mode 100644 index 0000000..847166e --- /dev/null +++ b/executor/handlers/config.py @@ -0,0 +1,11 @@ +__author__ = 'RemiZOffAlex' +__email__ = 'remizoffalex@mail.ru' + +from os import getenv + +def handle_config(config): + INPUT_REF = getenv('INPUT_REF') + if len(INPUT_REF)==0: + config['ref'] = getenv['GITHUB_REF_NAME'] + else: + config['ref'] = INPUT_REF