mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
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:
2
.github/scripts/common.py
vendored
2
.github/scripts/common.py
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user