Make workflow not fail if no doc files changed (#25033)

This commit is contained in:
steviez 2022-05-06 01:32:38 -05:00 committed by GitHub
parent c491def895
commit c895ad6b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

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