Skip to content

Commit

Permalink
fix auto release (Azure#36558)
Browse files Browse the repository at this point in the history
  • Loading branch information
msyyc authored Jul 22, 2024
1 parent b238b8b commit 8a83e05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/auto_release/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,11 @@ def check_version(self):

def check_changelog_file(self):
def edit_changelog_proc(content: List[str]):
content[1:1] = ['\n', f'## {self.next_version}{self.version_suggestion} ({self.target_release_date})\n\n', self.get_changelog(), '\n']
next_version = self.next_version
content[1:1] = ['\n', f'## {next_version}{self.version_suggestion} ({self.target_release_date})\n\n', self.get_changelog(), '\n']
if next_version == "1.0.0b1":
for _ in range(4):
content.pop()

modify_file(str(Path(self.sdk_code_path()) / 'CHANGELOG.md'), edit_changelog_proc)

Expand Down

0 comments on commit 8a83e05

Please sign in to comment.