Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
delete

GitHub Action

Delete Older Releases

v0.1.0

Delete Older Releases

delete

Delete Older Releases

delete older releases of any repo

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Delete Older Releases

uses: dev-drprasad/[email protected]

Learn more about this action in dev-drprasad/delete-older-releases

Choose a version

GitHub Action: Delete older releases

This action deletes older releases of given repo

Add following step to your workflow:

- uses: dev-drprasad/[email protected]
  with:
    repo: <owner>/<repoName> # defaults to current repo
    keep_latest: 3
  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