From 8d6c2f337556843626681657df3d0ba83877fdd0 Mon Sep 17 00:00:00 2001 From: API Changelog Bot Date: Thu, 23 Jul 2026 11:07:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(workflow):=20=E7=A7=BB=E9=99=A4=E5=A4=96?= =?UTF-8?q?=E9=83=A8=20Actions=20=E4=BB=93=E5=BA=93=E4=BE=9D=E8=B5=96=20(#?= =?UTF-8?q?24)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../validate-changelog-filenames.yml | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/validate-changelog-filenames.yml b/.gitea/workflows/validate-changelog-filenames.yml index 6feedc8..03eee97 100644 --- a/.gitea/workflows/validate-changelog-filenames.yml +++ b/.gitea/workflows/validate-changelog-filenames.yml @@ -20,14 +20,20 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout full history - uses: actions/checkout@v4 - with: - fetch-depth: 0 + run: | + git init -q . + git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" + git fetch --no-tags --prune origin \ + "+refs/heads/*:refs/remotes/origin/*" \ + "+refs/pull/*/head:refs/remotes/pull/*/head" \ + "+refs/pull/*/merge:refs/remotes/pull/*/merge" + git checkout --detach "$GITHUB_SHA" - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' + - name: Verify Node.js runtime + run: | + node --version + npm --version + node -e "if (Number(process.versions.node.split('.')[0]) < 20) process.exit(1)" - name: Run regression tests run: npm test