Hi GitHub Actions community
I want to implement my own Docker GitHub Action that should provide an executable called
my-tool which I can use in my workflows. Ideally, I want to be able to write the following config in my workflow:
- name: Setup My Tool uses: actions/my-tool@v1 - name: Run My Tool run: my-tool --option1 --option2 arg1 arg2
My custom action that provides
my-tool is responsible for creating the
my-tool executable (either by downloading it or building from sources). And I want my action to make this executable available within the rest of my workflow. However, I can’t find any way to copy my executable from the docker container back to the host that runs my action.
Alternatively, I can transfer some files to the image instead of copying my executable back to the host. But I also can’t find a way to do that. The
upload-artifact action doesn’t provide a link to an asset which I can use via
curl from inside the container. More details here:
So I’m curious, what is the simplest (or even possible) way to transfer data between the main workflow and the Docker container action?