/actions-clean

A Github Action to clean the workspace on a self-hosted runner

Primary LanguageShell

Clean

A Github Action to clean the runner workspace

If you are using a self-hosted runner, it is highly recommended you set this action to run unconditionally as your last step.

Usage

# ...
steps:
  - uses: actions/checkout@v2.3.0
# - step 2
# - step 3
# - ...
  - uses: ueni-ltd/actions-clean@v1
    if: ${{ always() }} # To ensure this step runs even when earlier steps fail