2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

[fenix] Fix decision task that does not schedule anything on release builds (https://github.com/mozilla-mobile/fenix/pull/14006)

This commit is contained in:
Johan Lorenzo 2020-08-21 15:13:29 +02:00 committed by GitHub
parent 660846ad33
commit 4737ef7864

View File

@ -13,7 +13,7 @@ from voluptuous import All, Any, Optional, Range, Required
BETA_SEMVER = re.compile(r'^v\d+\.\d+\.\d+-beta\.\d+$')
PRODUCTION_SEMVER = re.compile(r'^v\d+\.\d+\.\d+(-rc\.\d+)?$')
RELEASE_SEMVER = re.compile(r'^v\d+\.\d+\.\d+(-rc\.\d+)?$')
extend_parameters_schema({
@ -48,8 +48,8 @@ def resolve_release_type(head_tag):
return ""
elif BETA_SEMVER.match(head_tag):
return "beta"
elif PRODUCTION_SEMVER.match(head_tag):
return "production"
elif RELEASE_SEMVER.match(head_tag):
return "release"
else:
raise ValueError('Github tag must be in semver format and prefixed with a "v", '
'e.g.: "v1.0.0-beta.0" (beta), "v1.0.0-rc.0" (production) or "v1.0.0" (production)')
'e.g.: "v1.0.0-beta.0" (beta), "v1.0.0-rc.0" (release) or "v1.0.0" (release)')