2023-11-08 15:29:41 +00:00
|
|
|
name: Clean runner
|
|
|
|
description: Clean the runner's temp path on ending
|
2024-08-19 10:08:23 +00:00
|
|
|
inputs:
|
|
|
|
images:
|
|
|
|
description: clean docker images
|
|
|
|
default: false
|
|
|
|
type: boolean
|
2023-11-08 15:29:41 +00:00
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
2024-08-19 10:08:23 +00:00
|
|
|
- name: Clean Temp
|
2023-11-08 15:29:41 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2024-08-19 10:08:23 +00:00
|
|
|
sudo rm -fr "${{runner.temp}}"
|
|
|
|
- name: Clean Docker Containers
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
docker rm -vf $(docker ps -aq) ||:
|
|
|
|
- name: Clean Docker Images
|
|
|
|
if: ${{ inputs.images }}
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
docker rmi -f $(docker images -aq) ||:
|