delete-older-releases #1131
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: delete-older-releases | |
on: | |
workflow_dispatch: | |
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/[email protected] | |
with: | |
keep_latest: 30 | |
delete_tags: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |