viascom/GitHub Maintenance Action
Executing maintenance tasks on GitHub — delete old workflow runs, artifacts, and logs.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GitHub authentication token (usually pass: secrets.GITHUB_TOKEN). | yes | ${{ github.token }} |
| repository | Repository name in format 'owner/repo'. | yes | ${{ github.repository }} |
| retention_days | Retention time in days for workflow runs to keep. | yes | 31 |
| keep_minimum_runs | Minimum number of latest workflow runs to always keep. | yes | 5 |
| github_base_url | GitHub API base URL. Defaults to public GitHub API. | no | https://api.github.com |
| delete_logs | If true, deletes only the logs of workflow runs. If false and delete_artifacts is also false, the entire workflow run will be deleted. | no | false |
| delete_artifacts | If true, deletes only the artifacts of workflow runs. If false and delete_logs is also false, the entire workflow run will be deleted. | no | false |
| actors | Comma-separated list of actors whose workflow runs to delete. If empty, no actor filtering is applied. | no | "" |
| branches | Comma-separated list of branches whose workflow runs to delete. If empty, no branch filtering is applied. | no | "" |
| events | Comma-separated list of workflow run events to delete. If empty, no event filtering is applied. | no | "" |
| statuses | Comma-separated list of workflow run statuses to delete. If empty, no status filtering is applied. | no | "" |
| keep_pull_requests | If true, pull request workflow runs will always be kept. | no | false |
| dry_run | If true, logs simulated changes but does not perform any deletions (artifacts, logs, or runs). | no | false |
| debug | If true, enables debug logging. | no | false |
Outputs
no outputs