-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Local composite actions always relative to top level repository #1348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @nyarly ,
We don't support these contexts in a |
Running into this exact same issue right now. I want to share common Github Actions in my org. For composite actions that use other tasks with a relative path, this breaks because it will look for the task in the consuming repository and not where the shared action is stored. I would consider this a bug. Can this be fixed on Github's side @thboop? |
Yes, when loading e.g. I wonder why this is not documented anywhere. |
Describe the bug
I'm building a set of actions for my organization, and I would like to re-use common sections as composite actions. This appears to be the motivating case around #646, and it certainly suits my needs.
However: I have a pattern like:
main repo
then in
my-org/github-actions
/build-em-all/action.yml
My dilemma here is that the above won't work - the action is looked up relative the the consumer's workspace; so it should be
- uses: ./github-actions/do-tedious-setup
- but that's entirely dependent on the checkout in the consumer! The actions library has to expect that it's checked out in the right directory, which itself imposes a restriction on the file structure of consuming projects.Even if I were to parameterize the checkout location, the
uses
field (probably rightfully) doesn't get any contexts to work from, so I can't deliver the input.For the moment, I'm settling on documenting the requirement and hoping it doesn't cause a problem.
Expected behavior
It'd be great if actions were looked up with a Bash style PATH behavior and that a workflow could append items to the lookup list.
Runner Version and Platform
Version of your runner? Github hosted
ubuntu-latest
The text was updated successfully, but these errors were encountered: