Skip to content
forked from python/cpython

Commit 4bc124c

Browse files
committedDec 7, 2022
pythongh-100072: only trigger netlify builds for doc changes
1 parent 7031275 commit 4bc124c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎.github/workflows/doc.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ on:
2121
- '3.8'
2222
- '3.7'
2323
paths:
24+
- '.github/workflows/doc.yml'
25+
# Should be in sync with `netlify.toml`:
2426
- 'Doc/**'
2527
- 'Misc/**'
26-
- '.github/workflows/doc.yml'
2728

2829
permissions:
2930
contents: read

‎netlify.toml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
base = "Doc/"
33
command = "make html"
44
publish = "build/html"
5+
# Do not trigger netlify builds if docs were not changed.
6+
# Changed files should be in sync with `.github/workflows/doc.yml`
7+
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ./Doc ./Misc ./netlify.toml"
58

69
[build.environment]
710
PYTHON_VERSION = "3.8"

0 commit comments

Comments
 (0)
Please sign in to comment.