Skip to content

Commit

Permalink
Merge pull request #221 from tj-actions/fix/invalid-error-message
Browse files Browse the repository at this point in the history
fix: invalid error message
  • Loading branch information
jackton1 authored May 31, 2022
2 parents 950e1cb + 810e804 commit 8852971
Show file tree
Hide file tree
Showing 3 changed files with 8 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.

7 changes: 6 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,12 @@ export async function run(): Promise<void> {
} else {
const allPatterns = filePatterns
.split('\n')
.filter(p => !DEFAULT_EXCLUDED_FILES.includes(p) && p !== '')
.filter(
p =>
!DEFAULT_EXCLUDED_FILES.map(
ep => `!${path.join(workingDirectory, ep.replace(/^!/, ''))}`
).includes(p) && p !== ''
)

if (allPatterns.length > 0) {
core.warning(
Expand Down

0 comments on commit 8852971

Please sign in to comment.