ci: robustify doc only change check (#23237)

This commit is contained in:
John Kleinschmidt 2020-04-23 11:01:30 -04:00 committed by GitHub
parent 8262f24fd8
commit 8b0dcfaa74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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