I'm going to create a reusable ("called") GitHub workflow and would like to store it in a separate folder, for example, ".github/workflows/public" but got an error "Missing the full path for reusable workflow" in a caller workflow file. Is it the restriction of GitHub to store workflows only in ".github/workflows" folder?
According to the official documentation
Reusable workflows are YAML-formatted files, very similar to any other workflow file. As with other workflow files, you locate reusable workflows in the
.github/workflowsdirectory of a repository. Subdirectories of the workflows directory are not supported.
So the answer to your question is no, it's not possible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With