-
Notifications
You must be signed in to change notification settings - Fork 119
42 lines (37 loc) · 955 Bytes
/
Delete_All_Workflows.yml
File metadata and controls
42 lines (37 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Copyright (c) 2019-2026 smallprogram
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
# https://github.com/smallprogram/OpenWrtAction
# File: .github/workflows/Delete_All_Workflows.yml
# Description: Delete all workflows
#
name: Delete_All_Workflows
on:
workflow_dispatch:
inputs:
ssh:
description: 'SSH connection to Actions'
required: false
default: 'false'
# schedule:
# - cron: '0 20 */3 * *'
# 每三天的UTC 20:00触发 北京时间为每三天的凌晨4点
permissions:
contents: write
packages: write
actions: write
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@main
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 0
use_daily_retention: true