Delete Old Workflows #212
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 Old Workflows | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 3 * * * | |
jobs: | |
Cleaning: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Delete Old Workflows | |
uses: Mattraks/delete-workflow-runs@main | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
retain_days: 7 | |
keep_minimum_runs: 0 | |
- name: Delete Old Releases | |
uses: dev-drprasad/delete-older-releases@master | |
with: | |
keep_latest: 15 | |
delete_tags: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |