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 7e35fee commit de46ab9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ def get_latest_tag():
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_specified_tag(index):
return subprocess.check_output(['git', 'tag']).decode('utf-8').strip().split("\n")[index]

def get_changelog():
res = subprocess.check_output(
['git', 'log', f'{get_latest_tag()}..HEAD', '--pretty=format:"%h %s"']).decode('utf-8').strip()
['git', 'log', f'{get_specified_tag(-2)}..get_specified_tag(-1)', '--pretty=format:"%h %s"']).decode('utf-8').strip()
res = res.split('\n')
featMsg = []
fixMsg = []
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "lx-music-api-server-python"
version = "2.0.0.beta-5"
version = "2.0.0.beta-6"
description = "一个适配 LX Music 的 API 后端实现"
authors = ["helloplhm-qwq", "lerdb", "Folltoshe"]
license = "MIT"
Expand Down

0 comments on commit de46ab9

Please sign in to comment.