mirror of
https://github.com/tj-actions/changed-files
synced 2025-03-06 05:17:44 +00:00
fix: bug matching patterns (#1520)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
d90c240f2a
commit
8476756ae3
3 changed files with 3 additions and 3 deletions
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…
Add table
Reference in a new issue