ci: Add workflow to automatically remove old artifacts
This commit is contained in:
3
.github/workflows/remove-old-artifacts.yml
vendored
3
.github/workflows/remove-old-artifacts.yml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
- cron: '0 1 * * *'
|
- cron: '0 1 * * *'
|
||||||
# 手动
|
# 手动
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
remove-old-artifacts:
|
remove-old-artifacts:
|
||||||
@@ -17,6 +17,7 @@ jobs:
|
|||||||
- name: Remove old artifacts
|
- name: Remove old artifacts
|
||||||
uses: c-hive/gha-remove-artifacts@v1
|
uses: c-hive/gha-remove-artifacts@v1
|
||||||
with:
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||||
age: '5 days' # '<number> <unit>', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js
|
age: '5 days' # '<number> <unit>', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js
|
||||||
# Optional inputs
|
# Optional inputs
|
||||||
# skip-tags: true
|
# skip-tags: true
|
||||||
|
|||||||
Reference in New Issue
Block a user