From a67871183389b50d91f84514066472a35e9ae3b1 Mon Sep 17 00:00:00 2001 From: Dhruva Gole Date: Tue, 6 Aug 2024 18:27:35 +0530 Subject: [PATCH] remove old artifacts Signed-off-by: Dhruva Gole --- .github/workflows/rm-old.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/rm-old.yml diff --git a/.github/workflows/rm-old.yml b/.github/workflows/rm-old.yml new file mode 100644 index 00000000..6a906d30 --- /dev/null +++ b/.github/workflows/rm-old.yml @@ -0,0 +1,21 @@ +name: Remove old artifacts + +on: + push: + branches: [ "main", "next" ] + pull_request: + branches: [ "main", "next" ] + +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: '2 days' # ' ', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js + # Optional inputs + # skip-tags: true + # skip-recent: 5