chore: add condition for running documentation actions (#5418)

* chore: add condition for running documentation actions

* fix condition
This commit is contained in:
Shahed Nasser
2023-10-19 20:53:51 +03:00
committed by GitHub
parent 54659ae79f
commit 1ebbf3dd33

View File

@@ -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