diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08cf46c..74a83f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,10 +34,9 @@ jobs: - run: pnpm test - - name: Fetch PR base for commitlint - if: github.event_name == 'pull_request' - run: git fetch --depth=1 origin ${{ github.event.pull_request.base.sha }} - - name: Validate commit messages if: github.event_name == 'pull_request' - run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} + continue-on-error: true + run: | + git fetch --depth=1 origin ${{ github.event.pull_request.base.sha }} 2>/dev/null || true + npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }}