Description
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/using-workflows/triggering-a-workflow
What part(s) of the article would you like to see updated?
If you define both branches/branches-ignore and paths, the workflow will only run when both filters are satisfied.
In another section of the same page https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#using-filters-to-target-specific-branches-or-tags-for-push-events, it reads
If you define both branches/branches-ignore and paths, the workflow will only run when both filters are satisfied.
Here the two "paths"
- are both linked to the same, non-existent target on the same page
https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#onpushpull_requestpull_request_targetpathspaths-ignore - while the expected target is in another page
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore
Additional information
This is caused by the use of an internal link in reusable, see line 5 below
[`paths`](#onpushpull_requestpull_request_targetpathspaths-ignore)
When one reusable is used by different pages, in most cases internal links like [text](#target)
will lead to invalid url in at least one of those rendered pages. The correct way is to tell the full path of the target page, like another link in line 7 in snippet above,
[AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet)
I'll provide a PR.