Skip to content

Commit 3487f17

Browse files
committed
Add pull request trigger for doc_source and src/ect paths so breaking
doc changes cant be pushed
1 parent 8dfd631 commit 3487f17

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
paths:
66
- 'doc_source/**'
77
- 'src/ect/**'
8+
pull_request:
9+
branches: [ "main" ]
10+
paths:
11+
- 'doc_source/**'
12+
- 'src/ect/**'
813

914
jobs:
1015
docs:
@@ -42,6 +47,7 @@ jobs:
4247
make html
4348
4449
- name: Deploy to GitHub Pages
50+
if: github.event_name == 'push'
4551
uses: peaceiris/actions-gh-pages@v3
4652
with:
4753
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)