Skip to content

Delete Expired Releases #12

Delete Expired Releases

Delete Expired Releases #12

name: Delete Expired Releases
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '20 4 * * *' # Run every day at 4:20
jobs:
clean_tmp:
name: Delete Expired Releases
runs-on: ubuntu-22.04
steps:
- name: Delete old releases on `tmp` channel
uses: dev-drprasad/delete-older-releases@0bf4e6748f08135170c2294f877ba7d9b633b028 # [email protected]
with:
keep_latest: 0
delete_expired_data: 7 # Delete after 1 week
delete_tag_pattern: .+-tmp\.\d+\+[A-Z]+
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}