igorjs/Clean Workflow Action
Clean workflow run logs based on configuration
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | The token to use to access the GitHub API | no | ${{ github.token }} |
| owner | The owner of the repository | no | ${{ github.repository_owner }} |
| repo | The name of the repository | no | ${{ github.repository }} |
| days_old | The amount of days old to delete | no | 7 |
| runs_older_than | The amount of days for a workflow run, since its last rerun, be considered old | no | 7 |
| runs_to_keep | The amount of latest workflows runs to keep | no | 0 |
| workflow_names | Comma-separated list of workflow names to filter (empty = all workflows) | no | "" |
| dry_run | Dry run mode - preview deletions without actually deleting | no | false |
Outputs
| name | description |
|---|---|
| result | The number of workflows deleted (deprecated, use runs-deleted) |
| total-runs-found | Total number of workflow runs found |
| runs-deleted | Number of runs successfully deleted |
| runs-failed | Number of runs that failed to delete |
| total-api-requests | Total number of API requests made |
| successful-requests | Number of successful API requests |
| failed-requests | Number of failed API requests |
| retry-attempts | Number of retry attempts |
| rate-limit-hits | Number of times rate limit was hit |
| circuit-breaker-trips | Number of times circuit breaker opened |