From 5bc2d83b084362d162bd4e05f875d8c4f0bea83a Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Mon, 1 Nov 2021 15:07:11 +0300 Subject: [PATCH] Add `GitHub Action` for Remove old artifacts (#873) --- .github/workflows/remove-old-artifacts.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/remove-old-artifacts.yml diff --git a/.github/workflows/remove-old-artifacts.yml b/.github/workflows/remove-old-artifacts.yml new file mode 100644 index 0000000..aad491d --- /dev/null +++ b/.github/workflows/remove-old-artifacts.yml @@ -0,0 +1,19 @@ +name: Remove old artifacts + +on: + schedule: + # Every day at 1am + - cron: '0 1 * * *' + +jobs: + remove-old-artifacts: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Remove old artifacts + uses: c-hive/gha-remove-artifacts@v1.2.0 + with: + age: '1 month' + skip-tags: true + skip-recent: 4