From bd4c62d0251b060b6416c8715513919e76de5c8c Mon Sep 17 00:00:00 2001 From: why-not-try-calmer Date: Wed, 4 Oct 2023 13:14:18 +0200 Subject: [PATCH] loose ends --- qgispluginci/parameters.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qgispluginci/parameters.py b/qgispluginci/parameters.py index 1aa77570..54c78d73 100644 --- a/qgispluginci/parameters.py +++ b/qgispluginci/parameters.py @@ -248,7 +248,9 @@ def validate_args(args: Namespace): return patterns = Parameters.get_release_version_patterns() - if re.match(patterns.pop("semver"), args.release_version) is None: + semvar_compliance = re.match(patterns.pop("semver"), args.release_version) + + if semvar_compliance is None: logging.warning( f"Be aware that '{args.release_version}' is not a semver-compliant version." ) @@ -257,7 +259,7 @@ def validate_args(args: Namespace): logging.warning("Disabled release version validation.") return - if not any( + if not semvar_compliance or not any( re.match(other_pattern, args.release_version) for other_pattern in patterns.values() ):