What is the maximum nesting depth for calling reusable workflows from other reusable workflows?
Select an answer to reveal the explanation.
Short Explanation and Infographic
GitHub supports up to 4 levels of reusable workflow nesting — enough for practical use cases without creating infinite recursion risks.
Full explanation below image
Full Explanation
GitHub Actions supports reusable workflow nesting up to 4 levels deep. This means: a workflow can call a reusable workflow (level 1), which can call another (level 2), which can call another (level 3), which can call one more (level 4). The 5th level is not permitted. This limit prevents infinite recursion and excessive resource consumption. Other limits that apply to reusable workflows: 20 unique reusable workflows can be called per workflow run, job outputs must be explicitly declared to pass values up the chain.