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():
|
def get_build():
|
||||||
try:
|
try:
|
||||||
tag = subprocess.check_output(['git', 'describe', '--exact-match', '--all']).strip()
|
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'
|
return 'rc'
|
||||||
elif re.match('v\d+\.\d+\.\d+$', tag.decode()):
|
elif re.match('tags\/v\d+\.\d+\.\d+$', tag.decode()):
|
||||||
return 'release'
|
return 'release'
|
||||||
return 'qa'
|
return 'qa'
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
|
|
Loading…
Reference in a new issue