We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94c12d4 commit ebfdbcbCopy full SHA for ebfdbcb
.github/workflows/bump_version.py
@@ -13,8 +13,9 @@ class Updater:
13
14
@staticmethod
15
def replace(match: re.Match[str]) -> str:
16
- ver = [int(x) for x in match.groups()[:3]]
17
- assert len(ver) == len(COMPONENTS)
+ ver = [int(x) for x in match.groups()[: len(COMPONENTS)]]
+ for _ in range(len(ver) - 1, len(COMPONENTS)):
18
+ ver.append(0)
19
print("old version:", ".".join([str(x) for x in ver]))
20
index = COMPONENTS.index(Updater.component)
21
ver[index] += 1
0 commit comments