We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f03a1ba commit 5bf8918Copy full SHA for 5bf8918
.github/workflows/cleanup.yml
@@ -1,8 +1,18 @@
1
-name: Delete failed workflow runs
+name: Delete workflow runs
2
3
on:
4
workflow_dispatch:
5
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
16
days:
17
description: 'Number of days to keep workflow runs'
18
required: true
@@ -32,3 +42,4 @@ jobs:
32
42
retain_days: ${{ github.event.inputs.days || 30 }}
33
43
keep_minimum_runs: ${{ github.event.inputs.minimum_runs || 6 }}
34
44
delete_workflow_pattern: ${{ github.event.inputs.delete_workflow_pattern || '' }}
45
+ delete_run_by_conclusion_pattern: ${{ github.event.inputs.status || 'failure' }}
0 commit comments