From 92fba9a2bf78176ca6e41b5f687abbe63c0c49c5 Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Fri, 9 Sep 2022 16:48:12 +0800 Subject: [PATCH] ci: remove commit-hash in version --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 49d9d7c7d6a..7f5bf3d00a8 100644 --- a/build.sh +++ b/build.sh @@ -8,7 +8,7 @@ if [ "$1" = "dev" ]; then version="dev" webVersion="dev" else - version=$(git describe --long --tags --dirty --always) + version=$(git describe --abbrev=0 --tags) webVersion=$(wget -qO- -t1 -T2 "https://api.github.com/repos/alist-org/alist-web/releases/latest" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g') fi