When using the workflow_run
event, you can specify which workflows can trigger your workflow.
The workflows
filters accept glob patterns that use characters like *
, **
, +
, ?
, !
and others to match more than one workflow 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.
For example, a workflow with the following trigger will only run when the workflow named Build
runs:
on:
workflow_run:
workflows: ["Build"]
types: [requested]
A workflow with the following trigger will only run when a workflow whose name starts with Build
completed:
on:
workflow_run:
workflows: ["Build*"]
types: [completed]
A workflow with the following trigger will only run when the workflow named Build C++
completed:
on:
workflow_run:
workflows: ["Build C\+\+"]
types: [completed]