From 8c4f086db771303a4db483caf6146913aa2243ce Mon Sep 17 00:00:00 2001 From: cheng zhen Date: Fri, 31 Jan 2025 20:44:42 +0800 Subject: [PATCH] ci: Add workflow to automatically remove old artifacts --- .github/workflows/remove-old-artifacts.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/remove-old-artifacts.yml b/.github/workflows/remove-old-artifacts.yml index 536f044..e67b9d8 100644 --- a/.github/workflows/remove-old-artifacts.yml +++ b/.github/workflows/remove-old-artifacts.yml @@ -6,7 +6,7 @@ on: - cron: '0 1 * * *' # 手动 workflow_dispatch: - + jobs: remove-old-artifacts: @@ -17,6 +17,7 @@ jobs: - name: Remove old artifacts uses: c-hive/gha-remove-artifacts@v1 with: + GITHUB_TOKEN: ${{ secrets.TOKEN }} age: '5 days' # ' ', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js # Optional inputs # skip-tags: true