Skip to content

Commit

Permalink
Merge pull request #29 from lavanet/fix_tagging
Browse files Browse the repository at this point in the history
Fix version tagging for newer major version
  • Loading branch information
nimrod-teich authored Mar 19, 2024
2 parents 33c4a78 + 74d7fe8 commit 408d48a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ def get_release_and_pre_release_tags() -> Tuple[List[str], List[str]]:
# only build tags after 0.24
tags = []
for tag in raw_tags:
major = tag.replace("v", "").split(".")[0]
minor = tag.replace("v", "").split(".")[1]
minor_int = int(minor)

if minor_int >= 24:
if minor_int >= 24 or major > 0:
tags.append(tag)

releases = []
Expand Down
5 changes: 3 additions & 2 deletions .github/tag_latest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

def split_tag(tag):
# split with 0 as default value
tag.replace('prerelease-v', 'v')
tag_split = tag.split('.') + ["0", "0", "0"]
tag = tag.replace('prerelease-v', 'v')
tag_split = tag.split('.')
tag_split = [tag_split[0], "0", "0"]

def safe_str_to_int(s, default=0):
try:
Expand Down

0 comments on commit 408d48a

Please sign in to comment.