RM_AX6000-LED_OpenWrt/.github/workflows/delete-older-releases.yml
2021-11-20 21:05:27 +08:00

24 lines
485 B
YAML

name: delete-older-releases
on:
schedule:
- cron: 0 16 * * *
jobs:
del_runs:
runs-on: ubuntu-latest
steps:
- name: 删除工作流
uses: GitRML/delete-workflow-runs@main
with:
retain_days: 7
keep_minimum_runs: 0
- name: 删除旧的Releases
uses: dev-drprasad/delete-older-releases@v0.2.0
with:
keep_latest: 30
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}