mirror of
https://github.com/tj-actions/changed-files
synced 2025-03-05 21:06:25 +00:00
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
3 changed files with 3 additions and 3 deletions
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 {
|
||||
const pathParts = pattern.split('/');
|
||||
const lastPart = pathParts[pathParts.length - 1];
|
||||
if (!lastPart.includes('.')) {
|
||||
if (!lastPart.includes('.') && !lastPart.endsWith('*')) {
|
||||
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
|
@ -1018,7 +1018,7 @@ export const getFilePatterns = async ({
|
|||
} else {
|
||||
const pathParts = pattern.split('/')
|
||||
const lastPart = pathParts[pathParts.length - 1]
|
||||
if (!lastPart.includes('.')) {
|
||||
if (!lastPart.includes('.') && !lastPart.endsWith('*')) {
|
||||
return `${pattern}/**`
|
||||
} else {
|
||||
return pattern
|
||||
|
|
Loading…
Add table
Reference in a new issue