diverger/🗑️ Clean Workflow Run Logs
Clean up old GitHub Actions workflow runs to save storage space
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit May 29, 2025
- License
- None
Pinned Snippet
uses: diverger/gh-clean-workflow@7931fc0d0e99ec54bf43ccbef28b9207fb46af08 # v1.3.2tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| runs_older_than | The amount of days old to delete | no | 21 |
| runs_to_keep | The amount of latest workflow runs to keep per workflow | no | 0 |
| dry_run | Only show what would be deleted (dry run, see the output in the run log) | no | true |
| github_token | GitHub token with actions:write permissions | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| total_runs | Total number of workflow runs found |
| deleted_runs | Number of workflow runs deleted |
| kept_runs | Number of workflow runs kept |
| failed_deletions | Number of failed deletions (if any) |
| cutoff_date | The cutoff date used for deletion (ISO format) |
| dry_run | Whether this was a dry run (true/false) |
| summary | Brief summary of the cleanup operation |