upload-pages-artifact icon indicating copy to clipboard operation
upload-pages-artifact copied to clipboard

The runner.temp directory may not exist in a container

Open nilsvu opened this issue 2 years ago • 2 comments

Running this action in a container fails because the runner.temp directory doesn't exist. Perhaps the temp dir could be passed to the action as an option?

This seems to be related to https://github.com/actions/runner/issues/965.

It looks like only the runner.temp in the tar command incorrectly refers to the host temp directory. The runner.temp in the upload-artifact step correctly points into the container.

nilsvu avatar Aug 30 '22 13:08 nilsvu

It looks like only the runner.temp in the tar command incorrectly refers to the host temp directory. The runner.temp in the upload-artifact step correctly points into the container.

Can you link to a workflow run illustrating this?

ncfavier avatar Aug 30 '22 14:08 ncfavier

Sure, here's an example: https://github.com/nilsvu/gwpv/runs/8093009319?check_suite_focus=true

Bildschirmfoto 2022-08-30 um 16 50 12

Then after just creating the runner.temp directory manually within the container the tar goes through but the upload fails: https://github.com/nilsvu/gwpv/runs/8093544512?check_suite_focus=true

Bildschirmfoto 2022-08-30 um 16 51 46

So there seems to be some inconsistent handling of runner.temp with containers.

nilsvu avatar Aug 30 '22 14:08 nilsvu