Skip to content

Commit d966b09

Browse files
committed
Improve git tag to version conversion
There is also aarch64 arch.
1 parent 290f0c5 commit d966b09

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ci/cleanup-binary-tags.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77

88

99
def tag_to_version(tag):
10-
version = re.sub(r'binary-', '', tag)
11-
version = re.sub(r'-[x86|i686].*', '', version)
12-
return version
10+
return tag.split('-')[1].lstrip('v')
1311

1412

1513
subprocess.check_call('git pull --tags', shell=True)

0 commit comments

Comments
 (0)