This is an automated email from the ASF dual-hosted git repository.

rantunes pushed a commit to branch kie-issues_821
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-images.git

commit 1a9284cab931d7948f6db31709139b82ae42e61a
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Tue Jan 30 16:07:19 2024 -0300

    Allow new patterns to update versions
---
 scripts/manage-kogito-version.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/manage-kogito-version.py b/scripts/manage-kogito-version.py
index 04cb161f..10950d22 100644
--- a/scripts/manage-kogito-version.py
+++ b/scripts/manage-kogito-version.py
@@ -51,9 +51,9 @@ if __name__ == "__main__":
 
     if args.bump_to:
         # validate if the provided version is valid.
-        # e.g. 1.10.0 or 1.0.0-rc1
-        pattern = '\d+.\d+.(\d+$|\d+-rc\d+$|\d+-snapshot$)'
-        regex = re.compile(r'\d+.\d+.(\d+$|\d+-rc\d+|\d+-snapshot$)')
+        # e.g. 1.10.0, 1.0.0-rc1, 999-snapshot or 999-20240101-snapshot
+        pattern = r'(\d+.\d+.)?(\d+$|\d+-rc\d+$|\d+(-\d{8})?-snapshot$)'
+        regex = re.compile(pattern, re.IGNORECASE)
         valid = regex.match(args.bump_to)
         examples_ref = ""
         if valid:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to