From 54bc16260380260764d09dd369fb8f5a1d4ac00b Mon Sep 17 00:00:00 2001 From: Rizel Scarlett Date: Wed, 12 Nov 2025 19:38:13 -0500 Subject: [PATCH] Fix documentation-only change detection for push events - Add fetch-depth: 0 to get full git history for proper comparison - Add explicit base parameter to paths-filter for push events - Ensures tests are skipped when doc-only PRs merge to main --- .github/workflows/pr-smoke-test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-smoke-test.yml b/.github/workflows/pr-smoke-test.yml index 124c0fcb4511..af1100bb83fa 100644 --- a/.github/workflows/pr-smoke-test.yml +++ b/.github/workflows/pr-smoke-test.yml @@ -33,11 +33,13 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4 with: ref: ${{ github.event.inputs.branch || github.ref }} + fetch-depth: 0 - name: Check for code changes uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # pin@v3 id: filter with: + base: ${{ github.event.before || github.event.pull_request.base.sha }} filters: | code: - '!documentation/**'