Add a guard clause to stop false changed-files positives

This commit is contained in:
Josh Dales
2023-05-11 17:02:05 -04:00
parent 34a5bf6e83
commit 4ac17648a4

View File

@@ -273,6 +273,11 @@ export function checkAll(
}
if (matchConfig.changedFiles) {
if (!changedFiles.length) {
core.debug(` no files to check "changed-files" patterns against`);
return false;
}
if (!checkAllChangedFiles(changedFiles, matchConfig.changedFiles)) {
return false;
}