# delete-older-releases **Repository Path**: higarfield/delete-older-releases ## Basic Information - **Project Name**: delete-older-releases - **Description**: Github Action to delete older releases - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-12 - **Last Updated**: 2021-08-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GitHub Action: Delete older releases This action deletes older releases of given repo Add following step to your workflow: ```yaml - uses: dev-drprasad/delete-older-releases@v0.1.0 with: repo: / # 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 `/`. 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.