2022.6 #88
@ -55,8 +55,12 @@ class Application(ApplicationABC):
|
|||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
version[VersionSettingsNameEnum.major.value] = branch.split('.')[0]
|
version[VersionSettingsNameEnum.major.value] = branch.split('.')[0]
|
||||||
version[VersionSettingsNameEnum.minor.value] = branch.split('.')[1]
|
version[VersionSettingsNameEnum.minor.value] = branch.split('.')[1]
|
||||||
|
if len(branch.split('.')) == 2:
|
||||||
|
version[VersionSettingsNameEnum.micro.value] = 0
|
||||||
|
else:
|
||||||
version[VersionSettingsNameEnum.micro.value] = f'{branch.split(".")[2]}{suffix}'
|
version[VersionSettingsNameEnum.micro.value] = f'{branch.split(".")[2]}{suffix}'
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Console.error(f'Branch {branch} does not contain valid version')
|
Console.error(f'Branch {branch} does not contain valid version')
|
||||||
|
Loading…
Reference in New Issue
Block a user