Skip to content

Commit

Permalink
Add paths_filter hint (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
fkirc authored Dec 10, 2023
1 parent f75f66c commit 2d93cbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ jobs:

### Example 3: Skip using `paths_filter`

> [!WARNING]
> If the paths_filter option is not working correctly, then you could copy the “example 1" multiple times according to your needs (see <https://github.com/fkirc/skip-duplicate-actions/issues/326> for details).


The `paths_filter` option can be used if you have multiple jobs in a workflow and want to skip them based on different [`paths_ignore`](#paths_ignore) / [`paths`](#paths) patterns. When defining such filters, the action returns corresponding information in the [`paths_result`](#paths_result) output.
For example in a monorepo, you might want to run jobs related to the "frontend" only if some files in the corresponding "frontend/" folder have changed and the same for "backend". This can be achieved with the following configuration:

Expand Down

0 comments on commit 2d93cbd

Please sign in to comment.