set_build regex
This commit is contained in:
parent
01baa193d5
commit
18a0204105
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue