Fix CI: Correctly validate
This commit is contained in:
parent
e424732a30
commit
b050e9d07c
1 changed files with 2 additions and 4 deletions
|
@ -10,8 +10,7 @@ class PrepareReleaseService():
|
|||
self.git_api = GitApi()
|
||||
|
||||
def __write_and_commit_version(self, version: Version, commit_message: str):
|
||||
# TODO: isValid is missing
|
||||
self.release.validate(self.release_repo.main_branch)
|
||||
self.release.is_valid(self.release_repo.main_branch)
|
||||
|
||||
self.release_repo.version_repository.write_file(version.get_version_string())
|
||||
self.git_api.add_file(self.release_repo.version_repository.file)
|
||||
|
@ -33,8 +32,7 @@ class TagAndPushReleaseService():
|
|||
def tag_release(self):
|
||||
annotation = 'v' + self.release.version.get_version_string()
|
||||
message = 'Release ' + annotation
|
||||
# TODO: Why is the count a parameter? We always tag the second last commit in this process.
|
||||
self.git_api.tag_annotated(annotation, message, 1)
|
||||
self.git_api.tag_annotated_second_last(annotation, message)
|
||||
|
||||
def push_release(self):
|
||||
self.git_api.push()
|
||||
|
|
Loading…
Reference in a new issue