So I have an Azure DevOps pipeline which ha s a specific github repository and I’ve added the entire yml pipeline config in another github repo which is a submodule.
Unfortunately when I am trying to go to the main pipeline config file in order to select the path of of the yml from the submodule it seems that I cannot see the submodule in the tree.
Is there a possibility to be able to use the yml file from submodule in the main pipeline(which has a default repo). If yes what would be the steps?
Thank you



If I'm understanding it right you have 2 repos, and want one of them to be able to reference a yml file in the other? For this to work the yml files need to be available at compile time, and this is totally possible!
Check out this info here about adding a repository resource to your pipeline (the main pipeline that will call the submodule) https://learn.microsoft.com/en-us/azure/devops/pipelines/process/resources?view=azure-devops&tabs=schema#define-a-repositories-resource
Once you have the reference, you can call submodules by appending the repository name to the path of the yml file, so Azure DevOps knows that it is from another repository, like this for example
Referencing the repo
Hopefully I've understood the question correctly!