-
Notifications
You must be signed in to change notification settings - Fork 363
Fix action when using self-hosted runnners #54
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
Conversation
These environment variables are not mentioned in https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables Could you point at the documentation of those environment variables? Have you considered using Do you know if |
For info, here are all the relevant environment variables available on my self-hosted runner
You're right As you can see from the directory paths, the temp dir is private to the runner process as you have to give each runner a I think the main downside with putting stuff in the |
The documentation of From the docs:
It might be worth asking whether |
@rneatherway, does it make sense for you to review this as you've done the research into this area? |
Happy to ✋ |
I agree, this seems simply wrong. @robertbrignull could you raise an issue with the relevant doc team? I think that you could find the right place using #product-documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a perfectly sensible way of addressing the issue.
This makes the action work on a self-hosted runner for me.
First, I was able to reproduce the action failing on the second build because of directories not being cleared. Switching to this branch fixed it and I could run the action repeatedly.
This PR moves all files that we create to the
RUNNER_TEMP
directory instead of placing them relative toRUNNER_WORKSPACE
. This means that files get cleaned between action runs.Merge / deployment checklist