From 08e9ac63b1f9b8c7f6c2a7bb2b5c4a3f863ebba1 Mon Sep 17 00:00:00 2001 From: Deluan Date: Tue, 28 Apr 2020 14:13:34 -0400 Subject: [PATCH] Add cron workflow to remove old pipeline artifacts --- .github/workflows/remove-old-artifacts.yml | 18 ++++++++++++++++++ 1 file changed, 18 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 00000000..822fff04 --- /dev/null +++ b/.github/workflows/remove-old-artifacts.yml @@ -0,0 +1,18 @@ +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: '7 days' + skip-tags: false