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:
|
jobs:
|
||||||
docs-test:
|
docs-test:
|
||||||
|
if: ${{ startsWith(github.ref, 'docs/') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel Previous Runs
|
- name: Cancel Previous Runs
|
||||||
@@ -41,6 +42,7 @@ jobs:
|
|||||||
run: yarn build:docs
|
run: yarn build:docs
|
||||||
|
|
||||||
vale-docs:
|
vale-docs:
|
||||||
|
if: ${{ startsWith(github.ref, 'docs/') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel Previous Runs
|
- name: Cancel Previous Runs
|
||||||
@@ -71,6 +73,7 @@ jobs:
|
|||||||
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
|
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
vale-ui:
|
vale-ui:
|
||||||
|
if: ${{ startsWith(github.ref, 'docs/') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel Previous Runs
|
- name: Cancel Previous Runs
|
||||||
@@ -101,6 +104,7 @@ jobs:
|
|||||||
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
|
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
vale-api:
|
vale-api:
|
||||||
|
if: ${{ startsWith(github.ref, 'docs/') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel Previous Runs
|
- name: Cancel Previous Runs
|
||||||
@@ -131,6 +135,7 @@ jobs:
|
|||||||
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
|
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
content-eslint:
|
content-eslint:
|
||||||
|
if: ${{ startsWith(github.ref, 'docs/') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel Previous Runs
|
- name: Cancel Previous Runs
|
||||||
@@ -152,6 +157,7 @@ jobs:
|
|||||||
run: yarn lint:content
|
run: yarn lint:content
|
||||||
|
|
||||||
code-docs-eslint:
|
code-docs-eslint:
|
||||||
|
if: ${{ startsWith(github.ref, 'docs/') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel Previous Runs
|
- name: Cancel Previous Runs
|
||||||
|
|||||||
Reference in New Issue
Block a user