mirror of
https://github.com/actions/labeler.git
synced 2025-12-10 11:41:56 +00:00
Add a guard clause to stop false changed-files positives
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user