SmsForwarder/.github/workflows/Delete_Old_Workflow_Runs.yml

29 lines
877 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Delete old workflow runs
on:
schedule:
- cron: '59 15 * * 7' #每周天在国际标准时间15点59分(北京时间+8即 23:59)
workflow_dispatch:
inputs:
root_sol:
description: "Workflow Title"
required: true
default: "Delete old workflow runs"
jobs:
del_runs:
runs-on: ubuntu-latest
steps:
- name: Delete Weekly Build
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
keep_minimum_runs: 1
delete_workflow_pattern: 'Weekly Build'
- name: Delete Self
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
keep_minimum_runs: 1
delete_workflow_pattern: 'Delete old workflow runs'