Skip to content

Delete-Old-Workflows #15

Delete-Old-Workflows

Delete-Old-Workflows #15

name: Delete-Old-Workflows
on:
repository_dispatch:
workflow_dispatch:
# 定时触发编译
schedule:
- cron: 0 0 * * 0
jobs:
Delete-Old-Workflows:
runs-on: ubuntu-latest
steps:
- name: Clone Repository
uses: actions/checkout@v4
- name: Set git
run : |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
sudo timedatectl set-timezone "Asia/Shanghai"
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@main
continue-on-error: true
with:
retain_days: 3
keep_minimum_runs: 0