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