You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you define both `branches`/`branches-ignore` and [`paths`](#onpushpull_requestpull_request_targetpathspaths-ignore), the workflow will only run when both filters are satisfied.
The `branches` and `branches-ignore` keywords accept glob patterns that use characters like `*`, `**`, `+`, `?`, `!` and others to match more than one branch name. If a name contains any of these characters and you want a literal match, you need to escape each of these special characters with `\`. For more information about glob patterns, see the "[AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet)."
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,
I did a search for the pattern of in-page anchor links with the data/reusables/. Wow, there's a lot!
I wonder if we have a lot of these busted in-page anchor links due to this very situation that @muzimuzhi so rightfully spotted.
We currently don't have a link checker for anchor links. It's something we've discussed and will continue to discuss. This issue here certainly helps. Thanks @muzimuzhi !
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?
In https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#using-filters-to-target-specific-branches-for-pull-request-events, it reads
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
Here the two "paths"
https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#onpushpull_requestpull_request_targetpathspaths-ignore
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
docs/data/reusables/actions/workflows/section-triggering-a-workflow-branches.md
Lines 5 to 7 in 1b90194
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,I'll provide a PR.
The text was updated successfully, but these errors were encountered: