]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100072: only trigger netlify builds for doc changes (#100074)
authorNikita Sobolev <mail@sobolevn.me>
Wed, 7 Dec 2022 19:07:30 +0000 (22:07 +0300)
committerGitHub <noreply@github.com>
Wed, 7 Dec 2022 19:07:30 +0000 (21:07 +0200)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
netlify.toml

index 52675b3d701eb78f4bc579cbb55d7599af7932a7..f5790fc5fec74f6ff1060bc5e611c52d88e705d2 100644 (file)
@@ -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"