From ff93a6204a863eab54b9149072f076f985c09b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Wed, 5 Jul 2023 19:18:32 +0800 Subject: [PATCH] update --- .github/workflows/remove-old-artifacts.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/remove-old-artifacts.yml b/.github/workflows/remove-old-artifacts.yml index 3788317a..bc85cf58 100644 --- a/.github/workflows/remove-old-artifacts.yml +++ b/.github/workflows/remove-old-artifacts.yml @@ -1,20 +1,13 @@ -name: Remove old artifacts - +name: 'Delete old artifacts' on: schedule: - # Every day at 1am - - cron: '0 1 * * *' + - cron: '0 * * * *' # every hour jobs: - remove-old-artifacts: + delete-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 + - uses: kolpav/purge-artifacts-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + expire-in: 7days # Setting this to 0 will delete all artifacts \ No newline at end of file