Skip to content

Commit

Permalink
ci: Add workflow to automatically remove old artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng zhen committed Jan 31, 2025
1 parent 1330a21 commit 8c4f086
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/remove-old-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- cron: '0 1 * * *'
# 手动
workflow_dispatch:


jobs:
remove-old-artifacts:
Expand All @@ -17,6 +17,7 @@ jobs:
- name: Remove old artifacts
uses: c-hive/gha-remove-artifacts@v1
with:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
age: '5 days' # '<number> <unit>', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js
# Optional inputs
# skip-tags: true
Expand Down

0 comments on commit 8c4f086

Please sign in to comment.