This commit is contained in:
Alexander Kachkaev
2023-03-27 09:47:52 +01:00
parent b28379f6ed
commit a7cc8a62ef
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@@ -197,7 +197,7 @@ function checkAny(changedFiles, globs, dot) {
} }
// equivalent to "Array.every()" but expanded for debugging and clarity // equivalent to "Array.every()" but expanded for debugging and clarity
function checkAll(changedFiles, globs, dot) { function checkAll(changedFiles, globs, dot) {
const matchers = globs.map(g => new minimatch_1.Minimatch(g)); const matchers = globs.map(g => new minimatch_1.Minimatch(g), { dot });
core.debug(` checking "all" patterns`); core.debug(` checking "all" patterns`);
for (const changedFile of changedFiles) { for (const changedFile of changedFiles) {
if (!isMatch(changedFile, matchers)) { if (!isMatch(changedFile, matchers)) {

View File

@@ -210,7 +210,7 @@ function checkAll(
globs: string[], globs: string[],
dot: boolean dot: boolean
): boolean { ): boolean {
const matchers = globs.map(g => new Minimatch(g)); const matchers = globs.map(g => new Minimatch(g), {dot});
core.debug(` checking "all" patterns`); core.debug(` checking "all" patterns`);
for (const changedFile of changedFiles) { for (const changedFile of changedFiles) {
if (!isMatch(changedFile, matchers)) { if (!isMatch(changedFile, matchers)) {