lizziespace/prune Releases
GitHub Action that prunes selected releases and tags according to their age
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| pattern | Regex search pattern used to match tags. all tags containing this pattern will be selected. | yes | .* |
| retention | Number of tags to keep. Latest tags are kept untouched, while older tags are removed as per `rm-tags` and `rm-releases`. | yes | 3 |
| rm-tags | whether to prune associated tags. | no | false |
| rm-releases | whether to remove associated releases. | no | false |
| dry-run | Runs the action as normal, but does not actually delete anything. | no | false |
| token | The GitHub token. This will default to the GitHub app token. This is primarily useful if you want to use your personal token (for targeting other repos, etc). If you are using a personal access token it should have access to the `repo` scope. | no | ${{github.token}} |
| repository | Optionally specify the repo where the tags should be searched and removed. Defaults to current repo. | no | ${{github.repository}} |
Outputs
| name | description |
|---|---|
| pruned-tags | Map of tags that got pruned as per `rm-tags`. |
| removed-releases | Map of releases removed as per `rm-releases`. |
| kept-tags | Map of tags that got kept as per `retention`. |