Reusable Workflow Depth Limit #8488
-
The depth limit of 2 is too low. For my use case, I'd need at least 3:
|
Beta Was this translation helpful? Give feedback.
Replies: 18 comments 16 replies
-
Depending on what level of reused you need you could consider composite actions as well. |
Beta Was this translation helpful? Give feedback.
-
Would love to see this limit increased. Even to The ability to create configurable reusable actions would improve DRYness across repositories. |
Beta Was this translation helpful? Give feedback.
-
Github actions is just so disappointing when it comes to re-usability. Look at CircleCI, Github should take notes. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Is this depth limit configurable in GHE, or is the 2 hardcoded? |
Beta Was this translation helpful? Give feedback.
-
Please address this limitation. Composite actions are not a good alternative for many of the use cases outlined here. |
Beta Was this translation helpful? Give feedback.
-
Just want to add to the consensus here, this would be incredibly useful |
Beta Was this translation helpful? Give feedback.
-
You can now nest up to 4 levels of reusable workflows |
Beta Was this translation helpful? Give feedback.
-
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: |
Beta Was this translation helpful? Give feedback.
-
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! |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately, just like you guys, I am in the same boat :-(! GH, are there any plans to increase the minimum depth Limit to > 5? |
Beta Was this translation helpful? Give feedback.
-
Same issue here. Need a limit increase please. |
Beta Was this translation helpful? Give feedback.
-
Limit increase please. It's 3 not 4, in fact. |
Beta Was this translation helpful? Give feedback.
-
Please increase the limit |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
You can now nest up to 4 levels of reusable workflows
https://github.blog/changelog/2022-08-22-github-actions-improvements-to-reusable-workflows/