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 { function matchBranchPattern(matcher: IMinimatch, branchName: string): boolean {
core.debug(` - ${printPattern(matcher)}`); core.debug(` - ${printPattern(matcher)}`);
if (!matcher.match(branchName)) { if (matcher.match(branchName)) {
core.debug(` ${printPattern(matcher)} did not match`); core.debug(` "branch" pattern matched`);
return false; return true;
} }
core.debug(` "branch" pattern matched`); core.debug(` ${printPattern(matcher)} did not match`);
return true; return false;
} }
function checkBranch(glob: string | string[]): boolean { function checkBranch(glob: string | string[]): boolean {