Skip to content

VozdyxStuff/self-hosted-clean

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

self-hosted workspace clean

Cleans up directories after GitHub Actions. By default, all files and directories remain on self-hosted machines.

Example usage

- uses: vozdyxstuff/self-hosted-clean@latest
  env:
    REPO_NAME: ${{ github.event.repository.name }}

It is important that this is run before any caching tasks as cleanups are run in reverse order (and you do not want to cleanup before the caching is saved).

A more full example:

jobs:
  build:
    runs-on: self-hosted
    steps:

    - uses: vozdyxstuff/self-hosted-clean@latest
      env:
        REPO_NAME: ${{ github.event.repository.name }}

    - uses: actions/checkout@latest
    - uses: actions/cache@latest
    # ....