diff --git a/src/labeler.ts b/src/labeler.ts index 7325e646..d42b03e1 100644 --- a/src/labeler.ts +++ b/src/labeler.ts @@ -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; }