ci: robustify doc only change check (#23258)

This commit is contained in:
trop[bot]
2020-04-23 10:55:36 -07:00
committed by GitHub
parent ea2e34c4c3
commit 19bd97d80c

View File

@@ -39,7 +39,7 @@ async function checkIfDocOnlyChange () {
return true;
}
});
if (nonDocChange) {
if (nonDocChange || filesChanged.data.length === 0) {
process.exit(1);
} else {
process.exit(0);