I have a multi-project (gradle) repo with each project organized in it’s own subdirectory:
root-project |_ sub-project-1 |... |_ sub-project-2 |... ... |_ sub-project-n |...
In my Github Actions workflow, I’d like to be able to detect which
sub-project-*directories are affected so that I can trigger a build for just those sub-projects.
I’m aware that I can define a per-sub-project workflow with push event paths filter on the workflow. However that requires me to duplicate the workflow for every sub-project. What would have worked is if I could inspect the paths in the push event dynamically, so that I could use it with conditional job execution. As far as I can tell this is not possible, but I wonder if I may be missing alternatives that could allow me to parameterize a job execution with the subdirectory name.