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.
# ...
steps:
- uses: actions/[email protected]
# - step 2
# - step 3
# - ...
- uses: ueni-ltd/actions-clean@v1
if: ${{ always() }} # To ensure this step runs even when earlier steps fail