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
3 changed files with 3 additions and 3 deletions

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