diff --git a/netlify.toml b/netlify.toml index 6eb05a8b..7a5a64a2 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,4 +3,10 @@ command = "bin/setup-runtime && export PATH=\"$(pwd)/bin:$PATH\" && php --version && npm run docs:build" [context.deploy-preview] - ignore = "curl -s -H \"Authorization: token $GITHUB_PAT\" https://api.github.com/repos/:owner/:repo/pulls/$REVIEW_ID | grep '\"documentation\"'" + ignore = """ + curl -s -H "Authorization: token $GITHUB_PAT" \ + https://api.github.com/repos/$REPOSITORY/pulls/$REVIEW_ID \ + | grep -q '"documentation"' || exit 0 + + exit 1 + """