Skip to content

s00d/delete-older-releases

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action: Delete older releases

This action deletes older releases of given repo

Add following step to your workflow:

- uses: s00d/delete-older-releases0.2.1
  with:
    repo: <owner>/<repoName> # defaults to current repo
    keep_latest: 3
    delete_tag_pattern: beta # defaults to ""
    delete_type: 'release'
    delete_branch: 'master'
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Available Options

keep_latest

required
true

Specifies number of latest releases (sorted by created_at) to keep. Pass 0 if you want to delete all releases

delete_tags

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

repo

required default
false repo executing action

Repo name in the format of <owner>/<repoName>. Defaults to the repo that executing this action

delete_tag_pattern

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.

delete_type

required default
false release

release or prerelease

delete_branch

required default
false master

target tree

About

Github Action to delete older releases

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%