maintainers / invite-automation

Instructions repo to join the Maintainers Organization
ISC License
271 stars 3 forks source link

I'm using self-hosted runner on the latest Windows Server 2022 machine. #381

Closed Marck closed 1 year ago

Marck commented 1 year ago

I'm using self-hosted runner on the latest Windows Server 2022 machine. When using git to download the sources, I constantly hit error like that:

Error: Command failed: rd /s /q "C:\github-runner_work_temp\6afb10cc-aa29-4bf3-ae57-aa46fde13a44" The process cannot access the file because it is being used by another process.

Would it be possible to:

retry this command or continue on error or move this command further in the execution? I have no idea what other process could be using anything in that folder, as Defender is disabled and C:\github-runner_work_temp\ is empty when workflow is stopped.

There is also one other possibility:

You can't use the rmdir command to delete the current directory. If you attempt to delete the current directory, the following error message appears:

The process can't access the file because it is being used by another process. But I can't tell what is the current directory at this particular place in the script.