Make workflow not fail if no doc files changed (#25033)
This commit is contained in:
parent
c491def895
commit
c895ad6b41
|
@ -36,17 +36,14 @@ jobs:
|
||||||
files: |
|
files: |
|
||||||
docs/**
|
docs/**
|
||||||
|
|
||||||
- name: Exit if no file changes in docs/
|
|
||||||
if: steps.changed-files-specific.outputs.any_changed != 'true'
|
|
||||||
run: |
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
|
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 14
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
||||||
working-directory: docs
|
working-directory: docs
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
|
|
Loading…
Reference in New Issue