Delete-1day #39
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-1day | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
# 定时触发编译 | |
# schedule: | |
# - cron: 0 0 * * 0 | |
jobs: | |
Delete-1day: | |
runs-on: ubuntu-20.04 | |
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: 1 | |
keep_minimum_runs: 0 |