diff --git a/.github/workflows/docs-test.yml b/.github/workflows/docs-test.yml index cbe10d728b..09386e5bb1 100644 --- a/.github/workflows/docs-test.yml +++ b/.github/workflows/docs-test.yml @@ -6,6 +6,7 @@ on: jobs: docs-test: + if: ${{ startsWith(github.ref, 'docs/') }} runs-on: ubuntu-latest steps: - name: Cancel Previous Runs @@ -41,6 +42,7 @@ jobs: run: yarn build:docs vale-docs: + if: ${{ startsWith(github.ref, 'docs/') }} runs-on: ubuntu-latest steps: - name: Cancel Previous Runs @@ -71,6 +73,7 @@ jobs: REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }} vale-ui: + if: ${{ startsWith(github.ref, 'docs/') }} runs-on: ubuntu-latest steps: - name: Cancel Previous Runs @@ -101,6 +104,7 @@ jobs: REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }} vale-api: + if: ${{ startsWith(github.ref, 'docs/') }} runs-on: ubuntu-latest steps: - name: Cancel Previous Runs @@ -131,6 +135,7 @@ jobs: REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }} content-eslint: + if: ${{ startsWith(github.ref, 'docs/') }} runs-on: ubuntu-latest steps: - name: Cancel Previous Runs @@ -152,6 +157,7 @@ jobs: run: yarn lint:content code-docs-eslint: + if: ${{ startsWith(github.ref, 'docs/') }} runs-on: ubuntu-latest steps: - name: Cancel Previous Runs