Skip to content

Delete old runs

Delete old runs #445

Workflow file for this run

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 }}