Manage Runs #37
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: 'Manage Runs' | |
on: | |
workflow_dispatch: | |
# schedule = 01:01 on the 1st day of each month | |
schedule: | |
- cron: '1 1 1 * *' | |
jobs: | |
# Prune Old Runs - https://github.com/Mattraks/delete-workflow-runs | |
del_runs: | |
name: Prune Runs | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: Mattraks/delete-workflow-runs@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
repository: ${{ github.repository }} | |
retain_days: 61 | |
keep_minimum_runs: 0 |