mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
24 lines
545 B
YAML
24 lines
545 B
YAML
name: Clean runner
|
|
description: Clean the runner's temp path on ending
|
|
inputs:
|
|
images:
|
|
description: clean docker images
|
|
default: false
|
|
type: boolean
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Clean Temp
|
|
shell: bash
|
|
run: |
|
|
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) ||:
|