Skip to content

Commit

Permalink
fix: bug with warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Mar 16, 2022
1 parent fceaa36 commit f0567a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ export async function run(): Promise<void> {

core.setOutput('paths-output-file', pathsOutputFile)
core.saveState('paths-output-file', pathsOutputFile)
} else if (filePatterns && !pathsOutput) {
} else if (
!pathsOutput &&
filePatterns.split('\n').filter(p => !DEFAULT_EXCLUDED_FILES.includes(p))
.length > 0
) {
core.warning(
'No match found for specified patterns. Ensure that subdirectory patterns a prefixed with "**/". See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet'
)
Expand Down

0 comments on commit f0567a6

Please sign in to comment.