From 1ebbf3dd33311c30b706879298719463b05e8d2b Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Thu, 19 Oct 2023 20:53:51 +0300 Subject: [PATCH] chore: add condition for running documentation actions (#5418) * chore: add condition for running documentation actions * fix condition --- .github/workflows/docs-test.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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