Skip to content

Commit 2bd953e

Browse files
ci(cleanup): keep latest 10 runs and remove push trigger
Signed-off-by: kmilo <kmilo.denis.glez@yandex.com>
1 parent e5d4216 commit 2bd953e

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎.github/workflows/cleanup.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: Cleanup Old Workflow Runs
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
- release-2.5
84
schedule:
95
# Run daily at 2 AM UTC
106
- cron: '0 2 * * *'
@@ -13,7 +9,7 @@ on:
139
keep_runs:
1410
description: Number of latest completed runs to keep per workflow
1511
required: false
16-
default: '15'
12+
default: '10'
1713

1814
jobs:
1915
cleanup:
@@ -32,7 +28,7 @@ jobs:
3228
script: |
3329
const owner = context.repo.owner;
3430
const repo = context.repo.repo;
35-
const defaultKeep = 15;
31+
const defaultKeep = 10;
3632
const inputKeep = Number(context.payload.inputs?.keep_runs || defaultKeep);
3733
const runsToKeep = Number.isFinite(inputKeep) && inputKeep > 0 ? inputKeep : defaultKeep;
3834

0 commit comments

Comments
 (0)