Reusable Workflow Depth Limit #8488
|
The depth limit of 2 is too low. For my use case, I'd need at least 3:
|
Replies: 25 comments 22 replies
|
Depending on what level of reused you need you could consider composite actions as well. |
|
Would love to see this limit increased. Even to The ability to create configurable reusable actions would improve DRYness across repositories. |
|
Github actions is just so disappointing when it comes to re-usability. Look at CircleCI, Github should take notes. |
|
I have to say, this difference between Reusable Workflows and Composites along with the strict 2-level depth limit on reusable workflows adds needless complexity to some pretty basic CI tasks. https://github.blog/2022-02-10-using-reusable-workflows-github-actions/ shows the difference between the two. I fully recognise there should be some depth limit to reusable workflows, but if the limit is 2 then I'd have to question the true use case of this functionality. @automartin5000 simple example is probably a good indication of the "base case" for this functionality. |
|
I'd also like to see nested reusable workflows as an option. The alternative of composable actions is wholly inadequate for being able to have DRY and composable YAML workflows (no secrets, seen as a single step, only a single job). The depth limitation forces copy-pasted workflows that are identical but necessary because they cannot be nested. This is impossible right now. One has to block copy the |
|
Is this depth limit configurable in GHE, or is the 2 hardcoded? |
|
Please address this limitation. Composite actions are not a good alternative for many of the use cases outlined here. |
|
Just want to add to the consensus here, this would be incredibly useful |
|
You can now nest up to 4 levels of reusable workflows |
|
Am trying to nest levels with reusable workflow but it fails? What am I doing wrong? Can GitHub action really handle nested workflows? Can someone pls clear this out. File: A.yaml File B.yaml: File C.yaml Am getting: |
|
3/4 levels is not enough, IMO. It's still very limiting. I've already run into this while writing my very first set of workflows! |
|
Would also like to request this be increased. It honestly seems that this is an unnecessary artificial limitation (or one borne of a suboptimal implementation). Our workflows is not terribly complex -- I'm just trying to reuse some logic between workflows in a monorepo -- but I've hit even the raised limit several times and had to introduce additional complexity to work around it. Composite actions and reusable workflows target two completely different needs and composite actions are not a good substitute for reusable workflows. |
|
The depth limit is a pain if you are promoting DRYness. The reusability is very much limited in GitHub Actions. So the map becomes: flowchart LR
caller.yml --> ci-reuse.yml
ci-reuse.yml --> platform.yml -.-> x64
platform.yml -.-> x86
platform.yml -.-> arm
x64 --> flavor.yml
x86 --> flavor.yml
arm --> flavor.yml
flavor.yml -.-> x64-Release
flavor.yml -.-> x64-Debug
flavor.yml -.-> x86-Release
flavor.yml -.-> x86-Debug
flavor.yml -.-> arm-Release
flavor.yml -.-> arm-Debug
|
|
Unfortunately, just like you guys, I am in the same boat :-(! GH, are there any plans to increase the minimum depth Limit to > 5? |
|
Same issue here. Need a limit increase please. |
|
Limit increase please. It's 3 not 4, in fact. |
|
Please increase the limit |
|
I agree Github Actions would benefit by increasing the limit or providing clear guidance around how we're supposed to architect systems of reusable CI code without a higher workflow call depth than is currently offered. |
|
limit |
|
This limit is really painful as it leads to a lot of code repetition. :( |
|
Hoping for a limit increase, composite actions are not a workaround. Certain features like "matrix" are limited to workflows, so you can use nested actions but then you can't have loops. You can write a shell loop in an action but then are unable to write a loop that calls another action. Only workflow_dispatch and waiting on completion provides a workaround but a lot of extra scripting. Bumping it up to even 5-7 would provide a lot of flexibility and is far short of typical stack limits. Cheers! |
|
It's such an own goal, you're better off setting everything to dispatch and use gh cli in your jobs with a custom token. |
|
Still no news? This unnecessary limitation is very frustrating and against every DRY principle |
|
I could get by with three levels, but I need them to be grouped in the UI or the UI is useless for following along... it's just a big mess of all the different platforms, precisions, etc I'm building. |
|
Hello :) You can now use up to 10 nested reusable workflows and call up to 50 workflows in total from a given workflow run. The previous limits were four and 20, respectively. |

Hello :)
https://github.blog/changelog/2025-11-06-new-releases-for-github-actions-november-2025/
You can now use up to 10 nested reusable workflows and call up to 50 workflows in total from a given workflow run. The previous limits were four and 20, respectively.