From b99c0ca43737c5ad3a5bafea8876a45f8c8af79e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Fri, 14 Nov 2025 20:06:01 +0800 Subject: [PATCH] Set fetch-depth to 0 in release workflow Configures the checkout step in the release workflow to use fetch-depth: 0, ensuring the full git history is available for subsequent steps. --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f1f08aa..77eae6e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -153,6 +153,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Download Artifacts uses: actions/download-artifact@v4 @@ -166,7 +168,7 @@ jobs: [ -d NapCat.Shell ] && (cd NapCat.Shell && zip -qr ../../NapCat.Shell.zip .) [ -d NapCat.Shell.Windows.Node ] && (cd NapCat.Shell.Windows.Node && zip -qr ../../NapCat.Shell.Windows.Node.zip .) cd .. - + - name: Generate release note via OpenRouter env: OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}