-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.04 KB
/
clean.yml
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
name: clean
on:
workflow_dispatch:
schedule:
- cron: '0 9 * * SUN'
jobs:
clean_workflows:
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
steps:
- name: remove_clean
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 0
delete_workflow_pattern: clean
- name: remove_rmpkgprefix
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 0
delete_workflow_pattern: rmpkgprefix
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 7
keep_minimum_runs: 6
delete_workflow_pattern: build