Browse Source

ci: robustify doc only change check (#23237)

John Kleinschmidt 5 years ago
parent
commit
8b0dcfaa74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script/doc-only-change.js

+ 1 - 1
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);