Feature request: allow workflow configuration in sub-folders #18055
Replies: 92 comments 110 replies
-
I was searching for a way to organise many workflows in the UI, like by category or by team for a mono-repo. And I was thinking about just being able to create subfolders in the ./github/workflow/ folder, and that each folder would appear as a collapsable section in the UI. But this proposal would be even better, at least when it comes to separation of files, but I'm not sure how it would be presented in the UI? |
Beta Was this translation helpful? Give feedback.
-
I was trying to do:
With the hope that I would see a list of actions as
or something similar. Since the action names are configured in the yml files it would make sense to namespace actions according to the directory they are in. For my use case, aside from namespacing actions via a directory name, nothing would change (though since I use only a small subset of actions functionality I'm not sure if there are other considerations). It would be nice if it was possible to put In any case, thank you for the actions tooling! It's pretty amazing. |
Beta Was this translation helpful? Give feedback.
-
It would also be rather nice if there could be a way to run a workflow nested in a submodule, and then leverage that same submoduled workflow to work on the parent repository. This is definitely a much bigger ask than what the original discussion was most likely tailored for, but it would certainly come in use for a repository I currently maintain. |
Beta Was this translation helpful? Give feedback.
-
This will help a lot my team for a mono-repo! I hope to saw this feature soon |
Beta Was this translation helpful? Give feedback.
-
You can do a lot of this by using a It isn't perfect, but, you can do it. Or, you could just use Forcing GitHub to recurse through the entire tree, or even a large slice of a tree whenever it receives any event is almost certainly a non-starter. I appreciate the problem, but don't think that asking them to do this is likely to go anywhere. What you can do is have your workflow load its configuration from a file at a path in your chosen directory. Many public workflows do this, although typically that directory is |
Beta Was this translation helpful? Give feedback.
-
A good workaround is symbolic links in your root directory |
Beta Was this translation helpful? Give feedback.
-
This feature would be awesome to have for when using both re-usable workflows and the "regular" workflow. Right now, I'm naming things with emojis in front of them to do this. 😂 It gets a little ⚡ if it's a re-usable. |
Beta Was this translation helpful? Give feedback.
-
Apparently it doesn’t work
…On Tue, Aug 2, 2022 at 6:32 AM Tim Kretschmer ***@***.***> wrote:
How can i achieve this?
ln -s ?
—
Reply to this email directly, view it on GitHub
<#18055 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOE4LLF6VBUR4F74GVLKSLVXD2KHANCNFSM5YELZWBA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Instead of recursing through the whole repo, why not provide a keyword in the root .github/workflows that can be used to point to the "sub-root" of the directory you want to treat as it's own repo (for actions)? Something like this: In
In
Benefits:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
This would be a nice feature for our template projects, to make certain workflows optional and easy to tear out (with related scripts). eg. "Not using the event queue system? tear out the workflow and related integration testing scripts by pulling ONE folder..." Suggested workaround: strictly enforced naming conventions on the workflow files. e.g. " |
Beta Was this translation helpful? Give feedback.
-
also running a monorepo and having workflow subfolders would be great as we have a lot of granular separation going on. this would be ideal for us:
|
Beta Was this translation helpful? Give feedback.
-
I've been following this thread for a while, if you're interest I made a simple cli in rust that can help with workflows context separation. Is still a WIP, nothing fancy. Hope this helps someone ✌️ |
Beta Was this translation helpful? Give feedback.
-
Has there been any progress made on this? Being able to define a |
Beta Was this translation helpful? Give feedback.
-
We are using monorepo setup and our |
Beta Was this translation helpful? Give feedback.
-
Pleaseee Github do somethinggg with it |
Beta Was this translation helpful? Give feedback.
-
Hello, Jenkins, |
Beta Was this translation helpful? Give feedback.
-
+1 |
Beta Was this translation helpful? Give feedback.
-
Oh god, I spend hours organizing everything into folders for our monorepo that spans several business units, only to get:
Really surprised this isn't possible, having several dozen workflows in the top level dir all for different business units, is super annoying |
Beta Was this translation helpful? Give feedback.
-
Uh, yeah. I wouldn't say not having sub-folders is "archaic". However, it does feel a bit like going back to the 2000-2010 era again when everyone was writing in python. What's the deal? |
Beta Was this translation helpful? Give feedback.
-
I don't know why GH bothers to have a discussion section to hear its user's opnions if they clearly just don't care about it. |
Beta Was this translation helpful? Give feedback.
-
+1 This is a very easy thing to implement, and it was suggested and supported by many, many developers. I got here from this suggestion (yet another) - https://github.com/orgs/community/discussions/11831. It would be very easy to implement folders or tags on workflows and the ability to view by folders or tags - maybe even go crazy and let people collapse them. The fact nothing at all has been done makes you wonder what's going on over in github development land. |
Beta Was this translation helpful? Give feedback.
-
Having sub folder supports would be really helpful in managing 20+ workflows in a mono-repo as it keeps increasingly difficult to manage it. I'm surprised even after 3 years there's been no update on this. |
Beta Was this translation helpful? Give feedback.
-
It’s June 2025 and we’re still organizing dozens of files by naming convention like we’re living in a man cave with no shelves. Just vibes and chaos. |
Beta Was this translation helpful? Give feedback.
-
@andrewakim @nebuk89 @lkfortuna Hello! Checking in for updates on this [highly requested] ticket. |
Beta Was this translation helpful? Give feedback.
-
In Azure DevOps Pipelines this feature has been available for years. Since Github is Microsoft, why it is not implemented yet? |
Beta Was this translation helpful? Give feedback.
-
+1! |
Beta Was this translation helpful? Give feedback.
-
my first mono repo and it's sadly a Github mess :( |
Beta Was this translation helpful? Give feedback.
-
First time working mono repo. I was happy, organized all my workflows in folders... Took me years to rename everything. All for nothing :,(| |
Beta Was this translation helpful? Give feedback.
-
this is lame let us use file directories! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Copying this feature request over from https://github.community/t/feature-request-allow-workflow-configuration-in-sub-folders/16776
Beta Was this translation helpful? Give feedback.
All reactions