Skip to content

GitHub Actions Cleaner, a simple composite run steps action to clean the GitHub Actions environment to bare minimum.

License

Notifications You must be signed in to change notification settings

aks-max/slimhub_actions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rokibhasansagar/slimhub_actions@main

GitHub tag (latest by date)

GitHub Actions Cleaner

A simple composite run steps action to clean the GitHub Actions environment to bare minimum. When you don't really need any extra software rather than core functions of Ubuntu itself, you would want to use this.

Github Actions give you a 84GB storage drive which is loaded up to 62GB with lots of programs inbuilt. That gives you only 22GB playground.

But with this action, you can gain up to 78GB! That means around 56GB can be freed!

More space can be gained. Work is undergoing to achieve that.

How To Use

Your Workflow must run on Ubuntu Runners, bionic or focal.

# ...
jobs:
  slim_build:
    runs-on: ubuntu-latest
    # You can use either of the ubuntu-18.04 or ubuntu-20.04 runner
    steps:
      # You might want to Checkout your repo first, but not mandatory
      - uses: actions/checkout@v2
      # Cleanup The Actions Workspace Using Custom Composite Run Actions
      - uses: rokibhasansagar/slimhub_actions@main
      # That's it! Now use your normal steps
      # ...

What Are Removed

See the script itself to know what exactly are stripped.

Don't cry if any further steps using other Actions or scripts fail due to command not found. You have to manually install every prerequisite programs which would seem to be unavailable to run your particular script(s).

Inspired By

License

The script and documentation in this project are released under the MIT License

About

GitHub Actions Cleaner, a simple composite run steps action to clean the GitHub Actions environment to bare minimum.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%