You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-22Lines changed: 14 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,19 @@ A GitHub Action to delete workflow runs in a repository. This Action uses JavaSc
12
12
13
13
## Inputs (summary)
14
14
15
-
| Input |Required |Default | Description |
16
-
|---|---:|---|---|
17
-
|`token`|No |`${{github.token}}`| GitHub token used for authentication. Use `github.token` for the current repository or a PAT with `repo` scope for cross-repo access. Token must have appropriate permissions (see Permissions). |
18
-
|`repository`|No |`${{github.repository}}`| The target repository in `owner/repo` format. |
19
-
|`retain_days`|No |`30`| Number of days to retain workflow runs before deletion. |
20
-
|`keep_minimum_runs`|No |`6`| Minimum number of runs to keep per workflow. |
21
-
|`delete_workflow_pattern`|No |(empty) | Target workflows by name or filename. Supports multiple filters separated by `\|`. Example: `build\|deploy` will match workflows with "build" OR "deploy" in name/filename. Omit to target all workflows. |
22
-
|`delete_workflow_by_state_pattern`|No |(empty) | Filter workflows by state (comma-separated): `active`, `deleted`, `disabled_fork`, `disabled_inactivity`, `disabled_manually`. Omit to target all states. |
23
-
|`delete_run_by_conclusion_pattern`|No |(empty) | Filter runs by conclusion (comma-separated): `action_required`, `cancelled`, `failure`, `skipped`, `success`. Omit to target all conclusions. |
24
-
|`dry_run`|No |`false`| If `true`, simulate deletions and only log actions without performing them. |
25
-
|`check_branch_existence`|No |`false`| If `true`, skip deletion for runs linked to an existing branch. Note: default branch (e.g., `main`) can be excluded from deletion checks as configured. |
26
-
|`check_pullrequest_exist`|No |`false`| If `true`, skip deletion for runs linked to a pull request. |
27
-
|`baseUrl`|No |(GitHub API base) | Optional GitHub Enterprise API base URL (e.g. `https://github.mycompany.com/api/v3`). Set when using GitHub Enterprise / GHES. |
15
+
| Input | Default | Description |
16
+
|---|---|---|
17
+
|`token`|`${{github.token}}`| GitHub token used for authentication. Use `github.token` for the current repository or a PAT with `repo` scope for cross-repo access. Token must have appropriate permissions (see Permissions). |
18
+
|`repository`|`${{github.repository}}`| The target repository in `owner/repo` format. |
19
+
|`retain_days`|`30`| Number of days to retain workflow runs before deletion. |
20
+
|`keep_minimum_runs`|`6`| Minimum number of runs to keep per workflow. |
21
+
|`delete_workflow_pattern`| (empty) | Target workflows by name or filename. Supports multiple filters separated by `\|`. Example: `build\|deploy` will match workflows with "build" OR "deploy" in name/filename. Omit to target all workflows. |
22
+
|`delete_workflow_by_state_pattern`| (empty) | Filter workflows by state (comma-separated): `active`, `deleted`, `disabled_fork`, `disabled_inactivity`, `disabled_manually`. Omit to target all states. |
23
+
|`delete_run_by_conclusion_pattern`| (empty) | Filter runs by conclusion (comma-separated): `action_required`, `cancelled`, `failure`, `skipped`, `success`. Omit to target all conclusions. |
24
+
|`dry_run`|`false`| If `true`, simulate deletions and only log actions without performing them. |
25
+
|`check_branch_existence`|`false`| If `true`, skip deletion for runs linked to an existing branch. Note: default branch (e.g., `main`) can be excluded from deletion checks as configured. |
26
+
|`check_pullrequest_exist`|`false`| If `true`, skip deletion for runs linked to a pull request. |
27
+
|`baseUrl`| (GitHub API base) | Optional GitHub Enterprise API base URL (e.g. `https://github.mycompany.com/api/v3`). Set when using GitHub Enterprise / GHES. |
28
28
29
29
Notes:
30
30
- Inputs names reflect the action's expected input keys. Do not change names in your workflow unless you have updated the Action code accordingly.
@@ -84,18 +84,14 @@ on:
84
84
inputs:
85
85
days:
86
86
description: "Days to retain runs"
87
-
required: true
88
87
default: "30"
89
88
minimum_runs:
90
89
description: "Minimum runs to keep"
91
-
required: true
92
90
default: "6"
93
91
delete_workflow_pattern:
94
92
description: "Workflow name or filename (omit for all). Use `|` to separate multiple filters (e.g. 'build|deploy')."
0 commit comments