Composite docker action #25623
-
I would like to write a generic action combining 3 steps, one of which requires to be run with a custom Docker image. It looks like this:
Can I add something like this below (which is what I use in my standalone action) ?
Or should I use a docker action? (but I don’t think I can use actions/checkout@v2 and jitterbit/get-changed-files in it, which is unfortunate) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No as far as I know this exists only on Job level. However the runner mounts your workspace (with all changes of your previous steps) into the docker action so you should be able to to replace run with
See Workflow syntax for GitHub Actions - GitHub Docs, Workflow syntax for GitHub Actions - GitHub Docs. |
Beta Was this translation helpful? Give feedback.
No as far as I know this exists only on Job level.
However the runner mounts your workspace (with all changes of your previous steps) into the docker action so you should be able to to replace run with
uses: docker://
without a custom docker action.See Workflow syntax…