Skip to content

Commit

Permalink
Document 3-level restriction for workflow_run (#22508)
Browse files Browse the repository at this point in the history
* Document 3-level restriction for workflow_run

* Update content/actions/learn-github-actions/events-that-trigger-workflows.md

* Update content/actions/learn-github-actions/events-that-trigger-workflows.md

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
  • Loading branch information
hubwriter and lucascosti authored Nov 2, 2021
1 parent 47ae46c commit d7a4e93
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,15 @@ on:

{% data reusables.webhooks.workflow_run_desc %}

{% data reusables.github-actions.branch-requirement %}
{% note %}

**Notes:**

* This event will only trigger a workflow run if the workflow file is on the default branch.

* You can't use `workflow_run` to chain together more than three levels of workflows. For example, if you attempt to trigger five workflows (named `B` to `F`) to run sequentially after an initial workflow `A` has run (that is: `A` → `B` → `C` → `D` → `E` → `F`), workflows `E` and `F` will not be run.

{% endnote %}

| Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` |
| --------------------- | -------------- | ------------ | -------------|
Expand Down

0 comments on commit d7a4e93

Please sign in to comment.