Is it possible to use a subfolder for github reusable worklow?

Viewed 293

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?

1 Answers

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/workflows directory of a repository. Subdirectories of the workflows directory are not supported.

So the answer to your question is no, it's not possible.

Related