From 67604ee82210393c927796c1cb02316c6a748b19 Mon Sep 17 00:00:00 2001 From: Josh Dales Date: Mon, 27 Mar 2023 16:26:58 -0400 Subject: [PATCH] Update more debugging statements --- dist/index.js | 8 ++++---- src/changedFiles.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/index.js b/dist/index.js index ac64e973..85f84a75 100644 --- a/dist/index.js +++ b/dist/index.js @@ -187,9 +187,9 @@ function printPattern(matcher) { return (matcher.negate ? '!' : '') + matcher.pattern; } function isAnyMatch(changedFile, matchers) { - core.debug(` matching patterns against file ${changedFile}`); + core.debug(` matching patterns against file ${changedFile}`); for (const matcher of matchers) { - core.debug(` - ${printPattern(matcher)}`); + core.debug(` - ${printPattern(matcher)}`); if (matcher.match(changedFile)) { core.debug(` ${printPattern(matcher)} matched`); return true; @@ -199,9 +199,9 @@ function isAnyMatch(changedFile, matchers) { return false; } function isAllMatch(changedFile, matchers) { - core.debug(` matching patterns against file ${changedFile}`); + core.debug(` matching patterns against file ${changedFile}`); for (const matcher of matchers) { - core.debug(` - ${printPattern(matcher)}`); + core.debug(` - ${printPattern(matcher)}`); if (!matcher.match(changedFile)) { core.debug(` ${printPattern(matcher)} did not match`); return false; diff --git a/src/changedFiles.ts b/src/changedFiles.ts index 35697b87..dc82dc81 100644 --- a/src/changedFiles.ts +++ b/src/changedFiles.ts @@ -50,9 +50,9 @@ function printPattern(matcher: Minimatch): string { } function isAnyMatch(changedFile: string, matchers: Minimatch[]): boolean { - core.debug(` matching patterns against file ${changedFile}`); + core.debug(` matching patterns against file ${changedFile}`); for (const matcher of matchers) { - core.debug(` - ${printPattern(matcher)}`); + core.debug(` - ${printPattern(matcher)}`); if (matcher.match(changedFile)) { core.debug(` ${printPattern(matcher)} matched`); return true; @@ -64,9 +64,9 @@ function isAnyMatch(changedFile: string, matchers: Minimatch[]): boolean { } function isAllMatch(changedFile: string, matchers: Minimatch[]): boolean { - core.debug(` matching patterns against file ${changedFile}`); + core.debug(` matching patterns against file ${changedFile}`); for (const matcher of matchers) { - core.debug(` - ${printPattern(matcher)}`); + core.debug(` - ${printPattern(matcher)}`); if (!matcher.match(changedFile)) { core.debug(` ${printPattern(matcher)} did not match`); return false;