Skip to content

Commit

Permalink
GH actions: delete old workflow runs (#4637) [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed May 26, 2021
1 parent 7c3daea commit 356ecf4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/delete-runs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Delete workflow runs
on:
workflow_dispatch:
inputs:
days:
description: 'Number of days'
required: true
default: 120

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

0 comments on commit 356ecf4

Please sign in to comment.