Skip to content
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

action cleanup #537

Open
folibis opened this issue Jun 13, 2021 · 5 comments
Open

action cleanup #537

folibis opened this issue Jun 13, 2021 · 5 comments

Comments

@folibis
Copy link

folibis commented Jun 13, 2021

The action doesn't remove a repository after workflow finished so repository just takes up space on the server in case of self-hosted runner used. This is can be critical when using big/multiples repositories. Especially it doesn't make sense because the action deletes the repository on startup. I guess that action should provide an option to delete the repo after workflow finished.

@altjx
Copy link

altjx commented Dec 26, 2021

Any updates on this by chance? Anyone figure out an alternative? I added a "last step cleanup" process, but seems like it breaks this action.

@Nikschavan
Copy link

Is there any alternative available for this at least? this is adding maintenance burden on the self-hosted runners where previously cloned repos keep taking up space

@anthonysidesap
Copy link

it is cleaned up , anthony j sides

@Nikschavan
Copy link

I noticed that, in my case most of the space was taken by _temp directory which was not getting automatically cleared.
It turned out that the cleanup was failing because of permissions, I removed the actions service and added it as a root user - actions/runner#529 (comment) which fixed the issue for me.

@gavintg
Copy link

gavintg commented Mar 1, 2023

Yeah, this is a thing, would prefer a flag for git clean -x -f -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants