mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-09-23 12:33:10 -04: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:
parent
61fb624f66
commit
c5acad73b4
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 = re.fullmatch(r"r_[0-9]+", _ref) is not None
|
||||||
MAKE_RELEASE = MAKE_RELEASE and (_environ.get('GITHUB_EVENT_NAME') != 'schedule')
|
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
|
DEV_BRANCH = _ref
|
||||||
else:
|
else:
|
||||||
DEV_BRANCH = None
|
DEV_BRANCH = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user