fix: bug returning files with matched patterns (#1648)

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Tonye Jack
2023-10-16 19:48:26 -06:00
committed by GitHub
parent 97266423db
commit 95690f9ece
3 changed files with 3 additions and 3 deletions

2
dist/index.js generated vendored
View File

@@ -2599,7 +2599,7 @@ const getFilePatterns = ({ inputs, workingDirectory }) => __awaiter(void 0, void
else { else {
const pathParts = pattern.split('/'); const pathParts = pattern.split('/');
const lastPart = pathParts[pathParts.length - 1]; const lastPart = pathParts[pathParts.length - 1];
if (!lastPart.includes('.')) { if (!lastPart.includes('.') && !lastPart.endsWith('*')) {
return `${pattern}/**`; return `${pattern}/**`;
} }
else { else {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -1018,7 +1018,7 @@ export const getFilePatterns = async ({
} else { } else {
const pathParts = pattern.split('/') const pathParts = pattern.split('/')
const lastPart = pathParts[pathParts.length - 1] const lastPart = pathParts[pathParts.length - 1]
if (!lastPart.includes('.')) { if (!lastPart.includes('.') && !lastPart.endsWith('*')) {
return `${pattern}/**` return `${pattern}/**`
} else { } else {
return pattern return pattern