From 6647bdc31c5b82378195ce71055099a7b36734a1 Mon Sep 17 00:00:00 2001 From: vladislav doster <10052309+vladdoster@users.noreply.github.com> Date: Thu, 5 May 2022 06:21:16 -0400 Subject: [PATCH] feat: add GH action to remove old workflow logs (#248) --- .github/workflows/delete-old-workflows.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/delete-old-workflows.yml diff --git a/.github/workflows/delete-old-workflows.yml b/.github/workflows/delete-old-workflows.yml new file mode 100644 index 000000000..d10823510 --- /dev/null +++ b/.github/workflows/delete-old-workflows.yml @@ -0,0 +1,18 @@ +name: Delete old workflow runs + +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + +jobs: + delete_old_runs: + runs-on: ubuntu-latest + steps: + - name: Delete old workflow runs + uses: Mattraks/delete-workflow-runs@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + repository: ${{ github.repository }} + retain_days: 14 + keep_minimum_runs: 50