diff --git a/script/doc-only-change.js b/script/doc-only-change.js index 13174f513d..467ee5399b 100644 --- a/script/doc-only-change.js +++ b/script/doc-only-change.js @@ -39,7 +39,7 @@ async function checkIfDocOnlyChange () { return true; } }); - if (nonDocChange) { + if (nonDocChange || filesChanged.data.length === 0) { process.exit(1); } else { process.exit(0);