Prevent incorrectly setting DEV_BRANCH

DEV_BRANCH is used to change archive upload behavior.
We current code it was incorrectly considering being on a dev branch while on main one (main)
This commit is contained in:
renaud gaudin 2023-03-28 07:56:37 +00:00
parent 61fb624f66
commit c5acad73b4
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ _ref = _environ.get("GITHUB_REF", "").split("/")[-1]
MAKE_RELEASE = re.fullmatch(r"r_[0-9]+", _ref) is not None
MAKE_RELEASE = MAKE_RELEASE and (_environ.get('GITHUB_EVENT_NAME') != 'schedule')
if not MAKE_RELEASE and _ref != "master":
if not MAKE_RELEASE and _ref != "main":
DEV_BRANCH = _ref
else:
DEV_BRANCH = None