diff --git a/dist/index.js b/dist/index.js index fa14c144..632c7030 100644 --- a/dist/index.js +++ b/dist/index.js @@ -213,12 +213,12 @@ function checkAll(changedFiles, globs) { } function matchBranchPattern(matcher, branchName) { 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) { const branchName = getBranchName();