Skip to content

Commit 5bf8918

Browse files
committed
chore: Update CI/CD tasks
1 parent f03a1ba commit 5bf8918

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/cleanup.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1-
name: Delete failed workflow runs
1+
name: Delete workflow runs
22

33
on:
44
workflow_dispatch:
55
inputs:
6+
status:
7+
description: 'Status of runs to delete (completed, failure, success, all)'
8+
required: true
9+
default: 'failure'
10+
type: choice
11+
options:
12+
- all
13+
- failure
14+
- success
15+
- completed
616
days:
717
description: 'Number of days to keep workflow runs'
818
required: true
@@ -32,3 +42,4 @@ jobs:
3242
retain_days: ${{ github.event.inputs.days || 30 }}
3343
keep_minimum_runs: ${{ github.event.inputs.minimum_runs || 6 }}
3444
delete_workflow_pattern: ${{ github.event.inputs.delete_workflow_pattern || '' }}
45+
delete_run_by_conclusion_pattern: ${{ github.event.inputs.status || 'failure' }}

0 commit comments

Comments
 (0)