From 7bfa93e954f53f9da2f264284048d5a01e4d19ef Mon Sep 17 00:00:00 2001 From: Andrin Bertschi Date: Tue, 24 Oct 2023 21:58:53 +0200 Subject: [PATCH] Create delete-old-runs.yaml --- .github/workflows/delete-old-runs.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/delete-old-runs.yaml diff --git a/.github/workflows/delete-old-runs.yaml b/.github/workflows/delete-old-runs.yaml new file mode 100644 index 0000000..ab7d7ef --- /dev/null +++ b/.github/workflows/delete-old-runs.yaml @@ -0,0 +1,17 @@ +name: Delete old workflow runs +on: + workflow_dispatch: + +jobs: + del_runs: + runs-on: ubuntu-latest + permissions: + actions: write + steps: + - name: Delete workflow runs + uses: Mattraks/delete-workflow-runs@v2 + with: + token: ${{ github.token }} + repository: ${{ github.repository }} + retain_days: 30 + keep_minimum_runs: 6