mage-action icon indicating copy to clipboard operation
mage-action copied to clipboard

Running as sudo

Open cep21 opened this issue 4 years ago • 1 comments

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!

cep21 avatar Apr 23 '21 17:04 cep21

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

crazy-max avatar Aug 08 '23 04:08 crazy-max