minor adjustment for successful branch matching.

To better follow the any convention as opposed to all
This commit is contained in:
Josh Dales
2021-10-28 22:13:56 -04:00
parent 2246b667c6
commit 89f6b77325

View File

@@ -225,13 +225,13 @@ function checkAll(changedFiles: string[], globs: string[]): boolean {
function matchBranchPattern(matcher: IMinimatch, branchName: string): boolean {
core.debug(` - ${printPattern(matcher)}`);
if (!matcher.match(branchName)) {
core.debug(` ${printPattern(matcher)} did not match`);
return false;
if (matcher.match(branchName)) {
core.debug(` "branch" pattern matched`);
return true;
}
core.debug(` "branch" pattern matched`);
return true;
core.debug(` ${printPattern(matcher)} did not match`);
return false;
}
function checkBranch(glob: string | string[]): boolean {