Skip to content

Delete older releases #24

Delete older releases

Delete older releases #24

## This action delete older releases
name: Delete older releases
permissions:
## Allow publishing of GitHub Release
contents: write
on:
## Run every 1 and 15 day of the month at 0:30 UTC
schedule:
- cron: '30 0 1,15 * *'
workflow_dispatch:
push:
paths:
- '.github/workflows/delete_releases.yml'
jobs:
# Label of the job
delete-releases-job:
# Run in Linux based operating systems
runs-on: ubuntu-latest
steps:
- name: Delete Older Releases
uses: dev-drprasad/[email protected]
with:
keep_latest: 30
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}