Skip to content

Commit f4a712b

Browse files
authored
ci: delete old workflow runs for pr-cleanup.yaml(#8146)
1 parent ea4b9a4 commit f4a712b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/stale.yaml

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Stale Issue and Branch Cleanup
1+
name: Stale Issue, Banch and Old Workflows Cleanup
22
on:
33
schedule:
44
# Every day at midnight
@@ -10,6 +10,7 @@ jobs:
1010
permissions:
1111
issues: write
1212
pull-requests: write
13+
actions: write
1314
steps:
1415
- uses: actions/stale@v8.0.0
1516
with:
@@ -42,3 +43,14 @@ jobs:
4243
delete_tags: false
4344
# extra_protected_branch_regex: ^(foo|bar)$
4445
exclude_open_pr_branches: true
46+
del_runs:
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Delete workflow runs
50+
uses: Mattraks/delete-workflow-runs@v2
51+
with:
52+
token: ${{ github.token }}
53+
repository: ${{ github.repository }}
54+
retain_days: 1
55+
keep_minimum_runs: 1
56+
delete_workflow_pattern: pr-cleanup.yaml

0 commit comments

Comments
 (0)