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: |
|
||||
docs/**
|
||||
|
||||
- name: Exit if no file changes in docs/
|
||||
if: steps.changed-files-specific.outputs.any_changed != 'true'
|
||||
run: |
|
||||
exit 1
|
||||
|
||||
- name: Setup Node
|
||||
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14
|
||||
|
||||
- name: Build
|
||||
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
||||
working-directory: docs
|
||||
run: |
|
||||
npm install
|
||||
|
|
Loading…
Reference in New Issue