azanir/delete-workflows-run
An action to delete workflow runs in a repository.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Jun 2, 2024
- License
- MIT
Pinned Snippet
uses: azanir/delete-workflows-run@1f50d40316b055f1bec75529dc84b45be8cdc536 # 1.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| token | Authentication token | yes | ${{ github.token }} |
| baseUrl | Base API URL | no | https://api.github.com |
| repository | Name of the repository | yes | ${{ github.repository }} |
| retain_days | Days-worth of runs to keep for each workflow | yes | 5 |
| keep_minimum_runs | Minimum runs to keep for each workflow | yes | 6 |
| delete_workflow_pattern | Name or filename of the workflow (if not set, all workflows are targeted) | no | — |
| delete_workflow_by_state_pattern | Filter workflows by state: active, deleted, disabled_fork, disabled_inactivity, disabled_manually | no | — |
| delete_run_by_conclusion_pattern | Remove runs based on conclusion: action_required, cancelled, failure, skipped, success | no | — |
| dry_run | Logs simulated changes, no deletions are performed | no | false |
| check_branch_existence | If the workflow was triggered by a branch, the branch must be deleted before the workflow run is deleted as well. | no | false |
| check_pullrequest_exist | If the run is linked to a pull request, the deletion is skipped. | no | false |
Outputs
no outputs