Skip to content

Commit fc3583c

Browse files
committed
Add docs path filter to github action
1 parent 7feb39b commit fc3583c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/deploy-to-gh-pages.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,21 @@ on:
44
branches:
55
- master
66
jobs:
7+
changes:
8+
runs-on: ubuntu-latest
9+
outputs:
10+
docs: ${{ steps.filter.outputs.docs }}
11+
steps:
12+
- uses: dorny/paths-filter@v2
13+
id: filter
14+
with:
15+
filters: |
16+
docs:
17+
- 'docs/**'
18+
719
build-and-deploy:
20+
needs: changes
21+
if: ${{ needs.changes.outputs.docs == 'true' }}
822
runs-on: ubuntu-latest
923
steps:
1024
- name: Checkout 🛎️

0 commit comments

Comments
 (0)