mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-27 00:07:16 +00:00
fix: [Update] filter invalid tags
This commit is contained in:
parent
7caea17c1f
commit
bff9b45c26
1 changed files with 6 additions and 0 deletions
|
@ -176,6 +176,12 @@ def get_git_upper_tags_remote(current_tag, is_fork):
|
||||||
for mess_tag in list_all_tags:
|
for mess_tag in list_all_tags:
|
||||||
commit, tag = mess_tag.split('\trefs/tags/')
|
commit, tag = mess_tag.split('\trefs/tags/')
|
||||||
|
|
||||||
|
# check if tag is float
|
||||||
|
try:
|
||||||
|
float(tag.split('^{}')[0][1:])
|
||||||
|
except ValueError:
|
||||||
|
continue
|
||||||
|
|
||||||
# add tag with last commit
|
# add tag with last commit
|
||||||
if float(tag.split('^{}')[0][1:]) >= float(current_tag):
|
if float(tag.split('^{}')[0][1:]) >= float(current_tag):
|
||||||
if '^{}' in tag:
|
if '^{}' in tag:
|
||||||
|
|
Loading…
Reference in a new issue