From ddb0a5793d76ed302567eae8be155cc8ff06abc7 Mon Sep 17 00:00:00 2001 From: liyp Date: Sat, 12 Apr 2025 17:38:32 +0800 Subject: [PATCH] =?UTF-8?q?Release=20v1.4.8=20=E6=B5=8B=E8=AF=95=E7=94=9F?= =?UTF-8?q?=E6=88=90readme.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/AutoRelease.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/AutoRelease.yaml b/.gitea/workflows/AutoRelease.yaml index 71c0579..b6f940b 100644 --- a/.gitea/workflows/AutoRelease.yaml +++ b/.gitea/workflows/AutoRelease.yaml @@ -216,8 +216,15 @@ jobs: run: | # 获取提交记录 COMMITS=$(git log --pretty=format:"- %ad - Commit: %s (%h)" --date=iso-strict) + # 获取版本发布记录 - RELEASES=$(curl -s "https://${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases" | jq -r '.[] | "- \(.published_at) - Release: \(.name) (\(.tag_name))"') + TAGS=$(git tag -l) + RELEASES="" + for tag in $TAGS; do + TAG_TIME=$(git show -s --format=%ai $tag) + RELEASES="${RELEASES}- $TAG_TIME - Release: $tag\n" + done + # 合并并按时间排序 COMBINED_TIMELINE=$(echo -e "$COMMITS\n$RELEASES" | sort -r) echo "::set-output name=timeline::$COMBINED_TIMELINE"