From a177ebb3e60cb174f99bca18b0134561390bcd01 Mon Sep 17 00:00:00 2001 From: lerdb Date: Wed, 9 Oct 2024 19:32:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=9F=E6=88=90changelog=E6=97=B6?= =?UTF-8?q?=E6=9C=AA=E8=8E=B7=E5=8F=96=E5=88=B0=E6=AD=A3=E7=A1=AE=E7=9A=84?= =?UTF-8?q?tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index b3c72d9..f6ee837 100644 --- a/build.py +++ b/build.py @@ -6,11 +6,11 @@ import os def get_latest_tag(): - t = subprocess.check_output(['git', 'tag']).decode('utf-8').strip().split("\n") + t = subprocess.check_output(['git', 'tag', '--sort=v:refname']).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): - r = subprocess.check_output(['git', 'tag']).decode('utf-8').strip().split("\n") + r = subprocess.check_output(['git', 'tag', '--sort=v:refname']).decode('utf-8').strip().split("\n") n = [] for i in r: if (i):