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

Running as sudo #222

Open
cep21 opened this issue Apr 23, 2021 · 1 comment
Open

Running as sudo #222

cep21 opened this issue Apr 23, 2021 · 1 comment

Comments

@cep21
Copy link

cep21 commented Apr 23, 2021

Hi,

I need to clear up space on my github runner instance by removing unused directories, specifically the 20+GB inside /usr/share/dotnet. This requires me to run the commands as sudo. I would like to put this inside mage so I can share this logic with all my actions. I cannot use the mage-action to do this since this rm command requires sudo.

Is it possible to have a flag to run the mage command inside sudo?

Thanks!

@crazy-max
Copy link
Member

I guess we could have a new input for this but we should have disclaimer that this is not recommended in docs.

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

No branches or pull requests

2 participants