fix: bug matching patterns (#1520)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
d90c240f2a
commit
8476756ae3
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
@ -2438,7 +2438,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('.') && !lastPart.includes('*')) {
|
if (!lastPart.includes('.')) {
|
||||||
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
@ -997,7 +997,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('.') && !lastPart.includes('*')) {
|
if (!lastPart.includes('.')) {
|
||||||
return `${pattern}/**`
|
return `${pattern}/**`
|
||||||
} else {
|
} else {
|
||||||
return pattern
|
return pattern
|
||||||
|
Loading…
x
Reference in New Issue
Block a user