build: [release] 我来刷版本号辣

This commit is contained in:
helloplhm-qwq 2024-01-31 23:48:51 +08:00
parent 7d1047ea34
commit 31ec95bcc0
No known key found for this signature in database
GPG Key ID: B7542212855B2C26

View File

@ -13,7 +13,7 @@ def get_specified_tag(index):
return subprocess.check_output(['git', 'tag']).decode('utf-8').strip().split("\n")[index]
def get_changelog():
cmd = ['git', 'log', f'{get_latest_tag()}..HEAD', '--pretty=format:"%h %s"']
cmd = ['git', 'log', f'{toml.load("./pyproject.toml")["tool"]["poetry"]["version"])}..HEAD', '--pretty=format:"%h %s"']
print(cmd)
res = subprocess.check_output(cmd).decode('utf-8').strip()
res = res.split('\n')