From 0138265af9146a7eed45c43a93bb8ddfc99e285b Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Mon, 13 Mar 2023 21:52:49 +0800 Subject: [PATCH] [skip ci] Delete workflow runs --- .github/workflows/workflow.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 000000000..2897c1cd9 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,19 @@ + +name: delete old workflows + +on: + schedule: + - cron: '0 16 0/7 * *' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Delete workflow runs + uses: Mattraks/delete-workflow-runs@v2 + continue-on-error: true + with: + token: ${{ github.token }} + repository: ${{ github.repository }} + retain_days: 30 + keep_minimum_runs: 30