Skip to content

Commit

Permalink
Merge pull request #55 from tj-actions/chore/add-warning-message-when…
Browse files Browse the repository at this point in the history
…-no-pattern-match-is-found
  • Loading branch information
jackton1 authored Mar 14, 2022
2 parents b444a94 + d282549 commit fceaa36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions 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.

4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ export async function run(): Promise<void> {

core.setOutput('paths-output-file', pathsOutputFile)
core.saveState('paths-output-file', pathsOutputFile)
} else if (filePatterns && !pathsOutput) {
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 fceaa36

Please sign in to comment.