diff --git a/netlify.toml b/netlify.toml index 3125c79c8d2b..a242e3b2fadf 100644 --- a/netlify.toml +++ b/netlify.toml @@ -13,7 +13,7 @@ [context.production] # Do not build the site if there's no site-related changes - ignore = "git diff --quiet HEAD^ HEAD -- website/ docs/ netlify.toml" + ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF -- website/ docs/ netlify.toml" # deploy preview build (faster config) [context.deploy-preview]