-
I have a private repository and would like to run a public action that uses Docker. I’ve followed the tutorial about Creating a Docker container action. As a next step, I’d like to bind the GitHub repository inside the container. As suggested in this question, this should happen automatically: > When a Docker action runs, it is run using these bind volumes:
However, the execution of my action does not mount “<org>/<repo>” but tries mounting “<repo>/<repo>” instead.
Interestingly, this does not fail but it leaves the “/github/workspace” directory is empty. How can I make sure that the correct directory gets mounted? (There’s a slightly related question on mounting additional volumes but I believe specifying additional volumes is not necessary in this case.) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The problem was that my setup lacked the checkout action. Simply adding the following step resolved the problem:
It seems “<repo>/<repo>” is the correct path after all. |
Beta Was this translation helpful? Give feedback.
-
@szarnyasg would you mind sharing the yaml file you are using? The links you reference are giving me 404s |
Beta Was this translation helpful? Give feedback.
The problem was that my setup lacked the checkout action. Simply adding the following step resolved the problem:
It seems “<repo>/<repo>” is the correct path after all.