Skip to content

Commit 408d48a

Browse files
authored
Merge pull request #29 from lavanet/fix_tagging
Fix version tagging for newer major version
2 parents 33c4a78 + 74d7fe8 commit 408d48a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ def get_release_and_pre_release_tags() -> Tuple[List[str], List[str]]:
1919
# only build tags after 0.24
2020
tags = []
2121
for tag in raw_tags:
22+
major = tag.replace("v", "").split(".")[0]
2223
minor = tag.replace("v", "").split(".")[1]
2324
minor_int = int(minor)
2425

25-
if minor_int >= 24:
26+
if minor_int >= 24 or major > 0:
2627
tags.append(tag)
2728

2829
releases = []

.github/tag_latest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99

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

1516
def safe_str_to_int(s, default=0):
1617
try:

0 commit comments

Comments
 (0)