fix: bug matching patterns (#1520)

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Tonye Jack
2023-09-01 13:49:08 -06:00
committed by GitHub
parent d90c240f2a
commit 8476756ae3
3 changed files with 3 additions and 3 deletions

View File

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