Skip to content

Cleanup old workflow runs #5

Cleanup old workflow runs

Cleanup old workflow runs #5

name: Cleanup old workflow runs
on:
workflow_dispatch:
inputs:
days:
description: 'Number of days.'
required: true
default: 15
minimum_runs:
description: 'The minimum runs to keep for each workflow.'
required: true
default: 10
jobs:
del_runs:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Delete workflow runs
uses: Mattraks/[email protected]
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: ${{ github.event.inputs.days }}
keep_minimum_runs: ${{ github.event.inputs.minimum_runs }}