Skip to content

Commit

Permalink
fix: bug matching patterns (#1520)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Action <action@github.com>
  • Loading branch information
jackton1 and actions-user committed Sep 1, 2023
1 parent d90c240 commit 8476756
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/utils.ts
Expand Up @@ -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
Expand Down

0 comments on commit 8476756

Please sign in to comment.