From be6b44a3a32fb8a985a162640b7ca7f84d0ba4e3 Mon Sep 17 00:00:00 2001 From: KT Date: Mon, 4 Mar 2024 19:34:16 +0800 Subject: [PATCH] ci: delete old workflows --- .github/workflows/Delete.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/Delete.yml diff --git a/.github/workflows/Delete.yml b/.github/workflows/Delete.yml new file mode 100644 index 00000000..7e346b82 --- /dev/null +++ b/.github/workflows/Delete.yml @@ -0,0 +1,17 @@ +name: Delete old workflow +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * 0' +# Run monthly, at 00:00 on the 1st day of month. + +jobs: + del_runs: + runs-on: ubuntu-latest + steps: + - name: Delete workflow runs + uses: GitRML/delete-workflow-runs@main + with: + token: ${{ secrets.AUTH_PAT }} + repository: ${{ github.repository }} + retain_days: 30 \ No newline at end of file