From 60b69196b3d622085d92f18a680374f8d3a0ca26 Mon Sep 17 00:00:00 2001 From: gitulisca <107976350+gitulisca@users.noreply.github.com> Date: Thu, 15 Dec 2022 18:08:13 +1100 Subject: [PATCH] Add maximum number of referenced workflows limit (#33581) Co-authored-by: Lucas Costi --- content/actions/using-workflows/reusing-workflows.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/actions/using-workflows/reusing-workflows.md b/content/actions/using-workflows/reusing-workflows.md index 94db69a7e061..573a3309e4e2 100644 --- a/content/actions/using-workflows/reusing-workflows.md +++ b/content/actions/using-workflows/reusing-workflows.md @@ -79,8 +79,12 @@ Called workflows that are owned by the same user or organization{% ifversion ghe {% ifversion nested-reusable-workflow %} * You can connect up to four levels of workflows. For more information, see "[Nesting reusable workflows](#nesting-reusable-workflows)." +* You can call a maximum of 20 reusable workflows from a single workflow file. This limit includes any trees of nested reusable workflows that may be called starting from your top-level caller workflow file. + + For example, _top-level-caller-workflow.yml_ → _called-workflow-1.yml_ → _called-workflow-2.yml_ counts as 2 reusable workflows. {% else %} * Reusable workflows can't call other reusable workflows. +* You can call a maximum of 20 reusable workflows from a single workflow file. {% endif %} {% ifversion private-actions %}{% else %}* Reusable workflows stored within a private repository can only be used by workflows within the same repository.{% endif %} * Any environment variables set in an `env` context defined at the workflow level in the caller workflow are not propagated to the called workflow. For more information about the `env` context, see "[Context and expression syntax for GitHub Actions](/actions/reference/context-and-expression-syntax-for-github-actions#env-context)."{% ifversion actions-reusable-workflow-matrix %}{% else %}