This action deletes older releases of given repo
Add following step to your workflow:
- uses: luccas-freitas/delete-older-releases@v0.0.1
with:
owner: <owner>
repo: <repoName1>,<repoName2>,<repoName3>
keep_latest: 3
delete_tag_pattern: beta # defaults to ""
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}| required |
|---|
| true |
Specifies number of latest releases (sorted by created_at) to keep. Pass 0 if you want to delete all releases
| required | default |
|---|---|
| false | false |
Specifies whether to delete tags associated to older releases or not. Older tags without any associated releases will not be deleted
| required | default |
|---|---|
| false | repo executing action |
Repo name in the format of <owner>/<repoName>. Defaults to the repo that executing this action
| required | default |
|---|---|
| false | empty string |
Specifies a pattern to match. If not specified then every release will be targeted. If specified then every release containing the pattern will be targeted. Use this option for example to remove old beta releases.