Files
tools/executor/handlers/config.py
T
RemiZOffAlex 6342dbe1f7
Test Actions / Builder (push) Successful in 7s
Обновить executor/handlers/config.py
2026-03-19 22:33:43 +03:00

14 lines
333 B
Python

__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
config['github.event.path'] = getenv('GITHUB_EVENT_PATH')