From 5ed19eff73a11d8c3d416bf48ce52834fabcbcd1 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sat, 5 Nov 2022 06:52:28 -0500 Subject: [PATCH] Create cleanup_artifacts.yml --- .github/workflows/cleanup_artifacts.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/cleanup_artifacts.yml diff --git a/.github/workflows/cleanup_artifacts.yml b/.github/workflows/cleanup_artifacts.yml new file mode 100644 index 0000000..d95304c --- /dev/null +++ b/.github/workflows/cleanup_artifacts.yml @@ -0,0 +1,20 @@ +name: Remove old artifacts + +on: + schedule: + # Every day at 1am + - cron: '0 1 * * *' + + workflow_dispatch: + +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