mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Add check that major is not issued in the middle of a year
This commit is contained in:
parent
ad7ec74009
commit
6fa16b7828
@ -199,6 +199,10 @@ class Release:
|
||||
raise ValueError(
|
||||
"The relese type must be 'major' for minor versions>=12"
|
||||
)
|
||||
if self._version.minor < 12 and self.release_type == "major":
|
||||
raise ValueError(
|
||||
"The relese type must be 'minor' for minor versions<12"
|
||||
)
|
||||
|
||||
with self._checkout(self.release_commit, True):
|
||||
# Checkout to the commit, it will provide the correct current version
|
||||
|
Loading…
Reference in New Issue
Block a user