diff --git a/.github/workflows/docs-test.yml b/.github/workflows/docs-test.yml index 33b53d87fc7bc..9dc556f4fe58e 100644 --- a/.github/workflows/docs-test.yml +++ b/.github/workflows/docs-test.yml @@ -73,7 +73,7 @@ jobs: REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }} vale-ui: - if: ${{ startsWith(github.ref, 'docs/') }} + if: ${{ startsWith(github.head_ref, 'docs/') }} runs-on: ubuntu-latest steps: - name: Cancel Previous Runs