/ .github / workflows / runner-system-prune.yml
runner-system-prune.yml
 1  name: Runners prune
 2  
 3  permissions:
 4    contents: read
 5  
 6  on:
 7    workflow_dispatch:
 8  
 9  concurrency:
10    group: ${{ github.workflow }}-${{ github.ref }}
11    cancel-in-progress: true
12  
13  jobs:
14    system-prune:
15      name: Runner system prune
16      runs-on: self-hosted
17      strategy:
18        fail-fast: false
19        matrix:
20          runner: [1, 2, 3, 4, 5, 6, 7, 8]
21      steps:
22        - name: Docker system prune
23          run: |
24            docker system prune -a -f
25