Delete old runs #445
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 runs | |
on: | |
workflow_dispatch: | |
inputs: | |
days: | |
description: 'Number of retains days.' | |
required: true | |
default: '0' | |
minimum_runs: | |
description: 'The minimum runs to keep for each workflow.' | |
required: true | |
default: '0' | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
deleteWorkflowRuns: | |
name: Delete old workflow runs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete workflow runs | |
uses: Mattraks/[email protected] | |
with: | |
token: ${{ secrets.SUPER_TOKEN }} | |
repository: ${{ github.repository }} | |
retain_days: ${{ github.event.inputs.days }} | |
keep_minimum_runs: ${{ github.event.inputs.minimum_runs }} |