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 {
|
||||
const pathParts = pattern.split('/');
|
||||
const lastPart = pathParts[pathParts.length - 1];
|
||||
if (!lastPart.includes('.') && !lastPart.includes('*')) {
|
||||
if (!lastPart.includes('.')) {
|
||||
return `${pattern}/**`;
|
||||
}
|
||||
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 {
|
||||
const pathParts = pattern.split('/')
|
||||
const lastPart = pathParts[pathParts.length - 1]
|
||||
if (!lastPart.includes('.') && !lastPart.includes('*')) {
|
||||
if (!lastPart.includes('.')) {
|
||||
return `${pattern}/**`
|
||||
} else {
|
||||
return pattern
|
||||
|
Loading…
x
Reference in New Issue
Block a user