From 414bc14996b2123c15e87df8ed8ddd868cc7ed9f Mon Sep 17 00:00:00 2001 From: zhuzichu Date: Tue, 4 Jul 2023 15:43:29 +0800 Subject: [PATCH] updatre --- .github/workflows/remove-old-artifacts.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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..3788317a --- /dev/null +++ b/.github/workflows/remove-old-artifacts.yml @@ -0,0 +1,20 @@ +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' # ' ', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js + # Optional inputs + # skip-tags: true + # skip-recent: 5 \ No newline at end of file