Skip to content

Commit 8af9558

Browse files
authored
Update docs workflow to run only on master. (#25)
1 parent a2493a4 commit 8af9558

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: Build Docs
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
docs:
77
runs-on: ubuntu-latest
8+
if: github.ref == 'refs/heads/master'
89
strategy:
910
matrix:
1011
python-version: [3.8]
@@ -33,6 +34,7 @@ jobs:
3334
fix-index:
3435
needs: docs
3536
runs-on: ubuntu-latest
37+
if: github.ref == 'refs/heads/master'
3638
strategy:
3739
matrix:
3840
python-version: [3.8]

0 commit comments

Comments
 (0)