2026-03-16 22:29:20 +03:00
|
|
|
__author__ = 'RemiZOffAlex'
|
|
|
|
|
__email__ = 'remizoffalex@mail.ru'
|
|
|
|
|
|
|
|
|
|
from os import getenv
|
|
|
|
|
|
|
|
|
|
def handle_config(config):
|
|
|
|
|
INPUT_REF = getenv('INPUT_REF')
|
|
|
|
|
if len(INPUT_REF)==0:
|
2026-03-16 23:02:07 +03:00
|
|
|
config['ref'] = getenv('GITHUB_REF_NAME')
|
2026-03-16 22:29:20 +03:00
|
|
|
else:
|
2026-03-16 23:02:07 +03:00
|
|
|
config['ref'] = INPUT_REF
|