1
0
mirror of synced 2026-01-04 00:06:20 -05:00
Files
docs/data/reusables/actions/workflows/triggering-a-workflow-paths2.md

13 lines
724 B
Markdown

If at least one path matches a pattern in the `paths` filter, the workflow runs. For example, the following workflow would run anytime you push a JavaScript file (`.js`).
```yaml
on:
push:
paths:
- '**.js'
```
{% data reusables.pull_requests.path-filtering-required-workflows %}
If a workflow is skipped due to path filtering, [branch filtering](/actions/using-workflows/workflow-syntax-for-github-actions#onpull_requestpull_request_targetbranchesbranches-ignore), or a [commit message](/actions/managing-workflow-runs/skipping-workflow-runs), then checks associated with that workflow will remain in a "Pending" state. A pull request that requires those checks to be successful will be blocked from merging.