Skip to content

Commit

Permalink
Create delete-old-workflows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adambajguz committed Mar 10, 2022
1 parent a0934dc commit 44f2386
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/delete-old-workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Delete old workflow runs

on:
workflow_dispatch:
inputs:
days:
description: 'Number of days.'
required: true
default: '30'
minimum_runs:
description: 'The minimum runs to keep for each workflow.'
required: true
default: '6'

jobs:
del_runs:
runs-on: ubuntu-latest
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: ${{ github.event.inputs.days }}
keep_minimum_runs: ${{ github.event.inputs.minimum_runs }}

0 comments on commit 44f2386

Please sign in to comment.