Skip to content

Commit 675ba2b

Browse files
authored
Merge pull request #28284 from github/repo-sync
Repo sync
2 parents d4e5576 + 158348d commit 675ba2b

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

data/reusables/actions/workflows/section-triggering-a-workflow-paths.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11

22
When using the `push` and `pull_request` events, you can configure a workflow to run based on what file paths are changed. Path filters are not evaluated for pushes of tags.
33

4-
Use the `paths` filter when you want to include file path patterns or when you want to both include and exclude file path patterns. Use the `paths-ignore` filter when you only want to exclude file path patterns. You cannot use both the `paths` and `paths-ignore` filters for the same event in a workflow.
4+
Use the `paths` filter when you want to include file path patterns or when you want to both include and exclude file path patterns. Use the `paths-ignore` filter when you only want to exclude file path patterns. You cannot use both the `paths` and `paths-ignore` filters for the same event in a workflow. If you want to both include and exclude path patterns for a single event, use the `paths` filter prefixed with the `!` character to indicate which paths should be excluded.
5+
6+
{% note %}
7+
8+
**Note:** The order that you define `paths` patterns matters:
9+
10+
- A matching negative pattern (prefixed with `!`) after a positive match will exclude the path.
11+
- A matching positive pattern after a negative match will include the path again.
12+
13+
{% endnote %}
514

615
If you define both `branches`/`branches-ignore` and `paths`/`paths-ignore`, the workflow will only run when both filters are satisfied.
716

@@ -41,11 +50,11 @@ on:
4150

4251
#### Example: Including and excluding paths
4352

44-
You can not use `paths` and `paths-ignore` to filter the same event in a single workflow. If you want to both include and exclude path patterns for a single event, use the `paths` filter along with the `!` character to indicate which paths should be excluded.
53+
You can not use `paths` and `paths-ignore` to filter the same event in a single workflow. If you want to both include and exclude path patterns for a single event, use the `paths` filter prefixed with the `!` character to indicate which paths should be excluded.
4554

4655
If you define a path with the `!` character, you must also define at least one path without the `!` character. If you only want to exclude paths, use `paths-ignore` instead.
4756

48-
The order that you define patterns matters:
57+
The order that you define `paths` patterns matters:
4958

5059
- A matching negative pattern (prefixed with `!`) after a positive match will exclude the path.
5160
- A matching positive pattern after a negative match will include the path again.

src/links/lib/excluded-links.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,6 @@ export default [
6666
'https://oidref.com/1.3.6.1.2.1.25.4',
6767
'https://www.ilo.org/global/about-the-ilo/newsroom/news/WCMS_574717/lang--en/index.htm',
6868
'https://cdrdv2-public.intel.com/671488/248966-Software-Optimization-Manual-R047.pdf',
69+
'https://www.lumendatabase.org/topics/5',
70+
'https://www.lumendatabase.org/topics/14',
6971
]

0 commit comments

Comments
 (0)