[Python-checkins] gh-100072: only trigger netlify builds for doc changes (#100074)

hugovk webhook-mailer at python.org
Wed Dec 7 14:08:01 EST 2022


https://github.com/python/cpython/commit/d92407ed497e3fc5acacb0294ab6095013e600f4
commit: d92407ed497e3fc5acacb0294ab6095013e600f4
branch: main
author: Nikita Sobolev <mail at sobolevn.me>
committer: hugovk <hugovk at users.noreply.github.com>
date: 2022-12-07T21:07:30+02:00
summary:

gh-100072: only trigger netlify builds for doc changes (#100074)

Co-authored-by: Hugo van Kemenade <hugovk at users.noreply.github.com>

files:
M netlify.toml

diff --git a/netlify.toml b/netlify.toml
index 52675b3d701e..f5790fc5fec7 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -2,7 +2,10 @@
     base = "Doc/"
     command = "make html"
     publish = "build/html"
+    # Do not trigger netlify builds if docs were not changed.
+    # Changed files should be in sync with `.github/workflows/doc.yml`
+    ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../netlify.toml"
 
 [build.environment]
   PYTHON_VERSION = "3.8"
-  IS_DEPLOYMENT_PREVIEW = "true"
\ No newline at end of file
+  IS_DEPLOYMENT_PREVIEW = "true"



More information about the Python-checkins mailing list