From: Nikita Sobolev Date: Wed, 7 Dec 2022 19:07:30 +0000 (+0300) Subject: gh-100072: only trigger netlify builds for doc changes (#100074) X-Git-Tag: v3.12.0a4~274 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d92407ed497e3fc5acacb0294ab6095013e600f4;p=thirdparty%2FPython%2Fcpython.git gh-100072: only trigger netlify builds for doc changes (#100074) Co-authored-by: Hugo van Kemenade --- 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"