Reputation: 2589
I have a repo, and I have a code generator that generates GitHub Actions inside some directories.
For example:
- repo_root
- .github/workflows
- site.yml <= this is a relative symlink to site's build.yml
- blog.yml <= this is a relative symlink to blog's build.yml
- site
- .github/workflows/build.yml
- blog
- .github/workflows/build.yml
I have created those symlinks, using this command and I can verify that they are correct (by cat
or by ls -lah
):
ln -s -f -r /repo/site/.github/workflows/build.yml /repo/.github/workflows/build.yml
However, they are not recognized in GitHub as Actions and they immediately fail.
Is it possible at all?
Upvotes: 8
Views: 2309
Reputation: 31
Seems like symlinks are not processed by the GitHub Action pipeline. I have a similar need with git submodules and the pipeline immediately returns with a symlink path to the submodule's GitHub action yaml file.
Upvotes: 3