From 53b41ca166717d81398b97224777d1045935374a Mon Sep 17 00:00:00 2001 From: Larvan2 <78135608+Larvan2@users.noreply.github.com> Date: Mon, 30 Jan 2023 18:17:22 +0800 Subject: [PATCH] Chore: Add action for deleting old workflow --- .github/workflows/Delete.yml | 16 ++++++++++++++++ 1 file changed, 16 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 0000000000..31f4a26520 --- /dev/null +++ b/.github/workflows/Delete.yml @@ -0,0 +1,16 @@ +name: Delete old workflow runs +on: + schedule: + - cron: '0 0 1 * *' +# 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