Delete older releases #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 }} |