From da28207168bb8be17b10fe7d80da1ce1b2e823b0 Mon Sep 17 00:00:00 2001 From: Syngnat Date: Fri, 20 Mar 2026 16:51:42 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ci):=20=E4=BF=AE=E5=A4=8D=20?= =?UTF-8?q?Release=20=E6=9E=84=E5=BB=BA=E8=B5=84=E4=BA=A7=E4=B8=A2?= =?UTF-8?q?=E5=A4=B1=EF=BC=8Ccheckout=20=E9=9A=94=E7=A6=BB=E5=88=B0?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - checkout path 改为 repo-for-changelog 避免 git 操作干扰 release-assets - Generate Changelog 步骤进入 checkout 子目录执行 git log --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c45fc0..f0961be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -613,17 +613,18 @@ jobs: sha256sum "${FILES[@]}" > SHA256SUMS fi - - name: Checkout code + - name: Checkout code for changelog uses: actions/checkout@v4 with: fetch-depth: 0 - clean: false + path: repo-for-changelog - name: Generate Changelog id: changelog shell: bash run: | set -euo pipefail + cd repo-for-changelog TAG="${{ github.ref_name }}" # 获取上一个 tag PREV_TAG=$(git tag --sort=-creatordate | grep -E '^v' | sed -n '2p' || true)