Files
tools/executor/handlers/config.py
T
RemiZOffAlex 9142e309ae
Test Actions / Builder (push) Successful in 7s
Обновить executor/handlers/config.py
2026-03-16 22:58:50 +03:00

12 lines
302 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'] = 'refs/heads/' + getenv('GITHUB_REF_NAME')
else:
config['ref'] = 'refs/heads/' + INPUT_REF