Delete Expired Releases #15
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
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 }} |