From 18a020410531e1c731ccf18f1cc3a3784918d300 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 22 Oct 2018 22:27:57 -0400 Subject: [PATCH] set_build regex --- scripts/set_build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/set_build.py b/scripts/set_build.py index 6f4b8a22e..afebdbbaa 100644 --- a/scripts/set_build.py +++ b/scripts/set_build.py @@ -17,9 +17,9 @@ def main(): def get_build(): try: tag = subprocess.check_output(['git', 'describe', '--exact-match', '--all']).strip() - if re.match('v\d+\.\d+\.\d+rc\d+', tag.decode()): + if re.match('tags\/v\d+\.\d+\.\d+rc\d+$', tag.decode()): return 'rc' - elif re.match('v\d+\.\d+\.\d+$', tag.decode()): + elif re.match('tags\/v\d+\.\d+\.\d+$', tag.decode()): return 'release' return 'qa' except subprocess.CalledProcessError: