chore: add condition for running documentation actions (#5418)
* chore: add condition for running documentation actions * fix condition
This commit is contained in:
6
.github/workflows/docs-test.yml
vendored
6
.github/workflows/docs-test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user