build: [release] 尝试修复构建

This commit is contained in:
helloplhm-qwq 2024-01-31 23:11:39 +08:00
parent 220bf6831b
commit 6d798d807b
No known key found for this signature in database
GPG Key ID: B7542212855B2C26

View File

@ -6,7 +6,8 @@ import os
def get_latest_tag():
return subprocess.check_output(['git', 'describe', '--abbrev=0', '--tags']).decode('utf-8').strip()
t = subprocess.check_output(['git', 'tag']).decode('utf-8').strip().split("\n")
return t[-1] if (t[-1] != toml.load("./pyproject.toml")["tool"]["poetry"]["version"]) else t[-2]
def get_changelog():