chore: update test (#1469)

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
Tonye Jack
2023-08-22 22:06:23 -06:00
committed by GitHub
parent 0a814e4372
commit 52dbf3e3cf
5 changed files with 395 additions and 100 deletions

10
dist/index.js generated vendored
View File

@@ -2141,7 +2141,7 @@ const getFilteredChangedFiles = ({ allDiffFiles, filePatterns }) => __awaiter(vo
dot: true,
windows: isWin,
noext: true
});
}).map(exports.normalizeSeparators);
}
else {
changedFiles[changeType] = files;
@@ -2347,7 +2347,7 @@ const getFilePatterns = ({ inputs, workingDirectory }) => __awaiter(void 0, void
filePatterns = filePatterns.replace(/\r\n/g, '\n');
filePatterns = filePatterns.replace(/\r/g, '\n');
}
core.debug(`file patterns: ${filePatterns}`);
core.debug(`Input file patterns: ${filePatterns}`);
return filePatterns
.trim()
.split('\n')
@@ -2357,10 +2357,10 @@ const getFilePatterns = ({ inputs, workingDirectory }) => __awaiter(void 0, void
return `${pattern}**`;
}
else {
const pathParts = pattern.split(path.sep);
const pathParts = pattern.split('/');
const lastPart = pathParts[pathParts.length - 1];
if (!lastPart.includes('.')) {
return `${pattern}${path.sep}**`;
if (!lastPart.includes('.') && !lastPart.includes('*')) {
return `${pattern}/**`;
}
else {
return pattern;

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long