fix: bug returning files with matched patterns (#1648)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
97266423db
commit
95690f9ece
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
@ -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
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user