diff --git a/scripts/set_build.py b/scripts/set_build.py index 1ec18335b..6f4b8a22e 100644 --- a/scripts/set_build.py +++ b/scripts/set_build.py @@ -19,8 +19,9 @@ def get_build(): tag = subprocess.check_output(['git', 'describe', '--exact-match', '--all']).strip() if re.match('v\d+\.\d+\.\d+rc\d+', tag.decode()): return 'rc' - else: + elif re.match('v\d+\.\d+\.\d+$', tag.decode()): return 'release' + return 'qa' except subprocess.CalledProcessError: # if the build doesn't have a tag return 'qa'