actions-marketplace-validations/Delete old branches
Delete branches which are older than certain period of time
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| repo_token | The GITHUB_TOKEN secret | yes | — |
| date | A git-log compatible date format | yes | — |
| dry_run | Run in dry-run mode so no branches are deleted | no | true |
| delete_tags | Also look for tags to delete | no | false |
| minimum_tags | Minimum number of tags to keep | no | false |
| default_branches | Default branch(es) to exclude | no | main,master |
| extra_protected_branch_regex | grep extended (ERE) compatible regex for additional branches to exclude | no | ^$ |
| extra_protected_tag_regex | grep extended (ERE) compatible regex for additional tags to exclude | no | ^$ |
| exclude_open_pr_branches | Exclude branches that have an open pull request | no | true |
Outputs
| name | description |
|---|---|
| was_dry_run | Ran in dry-run mode so no branches were deleted |
| deleted_branches | List of branches that were deleted |