From 356ecf44015f9da7d99ead1049ab9d188c9442b5 Mon Sep 17 00:00:00 2001 From: Juerg B <44573692+juergba@users.noreply.github.com> Date: Wed, 26 May 2021 07:02:18 +0200 Subject: [PATCH] GH actions: delete old workflow runs (#4637) [ci skip] --- .github/workflows/delete-runs.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/delete-runs.yml diff --git a/.github/workflows/delete-runs.yml b/.github/workflows/delete-runs.yml new file mode 100644 index 0000000000..e8e89a1aa2 --- /dev/null +++ b/.github/workflows/delete-runs.yml @@ -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