-
Notifications
You must be signed in to change notification settings - Fork 977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect context paths in conteiner #965
Comments
Extends #716 |
This commit copies the package to GITHUB_WORKSPACE instead of RUNNER_TEMP. This is required to workaround issue discussed in actions/runner#965 (Incorrect context paths in container) It also adds a step for uploading the generated Slicer package as an artifact with a retention time of 1 day.
This commit copies the package to GITHUB_WORKSPACE instead of RUNNER_TEMP. This is required to workaround issue discussed in actions/runner#965 (Incorrect context paths in container) It also adds a step for uploading the generated Slicer package as an artifact with a retention time of 1 day.
Hi @rosik, There is a PR fixing this issue, and as you noted. I will close this issue now but thank you for providing a repro repository. I am leaving a screenshot as a preview to prove that the fix is working as intended. Thank you for submitting it. I would normally wait for the PR to be merged, but since we have a previous issue stating this, and you already mentioned it, it seems alright to me to close this one. We can find it easily if something is wrong. Please, if you see any issue with this screenshot that I haven't seen, don't hesitate to notify me 😊 |
Yea, this is fine. And thanks for the fix! |
It seems like |
Describe the bug
The context is filled wrong when a job runs inside container:
${{ runner.temp }}
${{ runner.tool_cache }}
${{ github.action_path }}
All these variables report a path without respect to the docker environment.
To Reproduce
Here is the repo with a reproducer: https://github.com/rosik/ga-test-public/
Actual output
Expected behavior
From logs, we can see the docker container is created as
So I expect variables to be:
runner.temp == "/__w/_temp"
runner.tool_cache == "/__t"
github.action_path == "/__w/ga-test-public/ga-test-public/./.github/actions/repro"
Runner Version and Platform
The text was updated successfully, but these errors were encountered: