Can anybody help explain what I’m missing here?
I’m following this guide to run a docker container action, and trying to copy out the files.
It’s a pretty simple container action that runs a shell script like this:
# entrypoint.sh cd $GITHUB_WORKSPACE touch workspace.file mkdir "workspace-folder" ls -la
From the logs I see that both workspace.file and workspace-folder are created in the running container.
However, if I list the files using ls as the next step after the container, it seems that the workspace-folder has been persisted but workspace-file has not (after the container has exited)
# /.github/workflows/main.yml (excerpt) steps: - uses: actions/checkout@v2 - uses: ./.github/actions/my-action - run: ls -la $GITHUB_WORKSPACE