Skip to content
trash-2

GitHub Action

Self Hosted Runner Post Job Cleanup Action

v2.1 Latest version

Self Hosted Runner Post Job Cleanup Action

trash-2

Self Hosted Runner Post Job Cleanup Action

Cleansup the environment at the end of the job

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Self Hosted Runner Post Job Cleanup Action

uses: TooMuch4U/[email protected]

Learn more about this action in TooMuch4U/actions-clean

Choose a version

Runner Post Cleanup

A Github Action to clean the runner workspace - mostly copied from https://github.com/colpal/actions-clean.

This action will delete all files in the runners working directory at the end of the job. This is especially useful for self-hosted runners, where workspace files don't get deleted at the end of workflows.

Example

alt text

Usage

Add a step for the action (at any point in the job) and a post run job will delete any files left in the workspace.

# ...
steps:
  - uses: TooMuch4U/[email protected]
# - step 1
# - step 2
# - step 3
# - ...