3
0
Fork 0
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:
Tonye Jack 2023-10-16 19:48:26 -06:00 committed by GitHub
parent 97266423db
commit 95690f9ece
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

2
dist/index.js generated vendored
View file

@ -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

File diff suppressed because one or more lines are too long

View file

@ -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