'Can I symlink GitHub Actions to directories inside repo?
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?
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | bridgelancer |
