From d0d27695482daf5807b0d8e578fd5c700fa0e07e Mon Sep 17 00:00:00 2001 From: goaaats <16760685+goaaats@users.noreply.github.com> Date: Fri, 15 May 2020 16:06:25 +0200 Subject: [PATCH] Create delete-artifacts.yml --- .github/workflows/delete-artifacts.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/delete-artifacts.yml diff --git a/.github/workflows/delete-artifacts.yml b/.github/workflows/delete-artifacts.yml new file mode 100644 index 000000000..632d1f2e5 --- /dev/null +++ b/.github/workflows/delete-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 + with: + age: '1 month' + skip-tags: true + skip-recent: 3