Skip to content

Commit

Permalink
build: [release] 尝试修复构建
Browse files Browse the repository at this point in the history
  • Loading branch information
helloplhm-qwq committed Jan 31, 2024
1 parent 220bf68 commit 6d798d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@


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():
Expand Down

0 comments on commit 6d798d8

Please sign in to comment.