Skip to content

Commit 5a68ddc

Browse files
kopporGuilhermeRibeiroPereira
authored andcommitted
Add scheduled workflow run deletion (JabRef#12714)
1 parent 1d5d6a4 commit 5a68ddc

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Delete old workflow runs (automatically)
2+
on:
3+
schedule:
4+
- cron: '0 0 1 * *'
5+
jobs:
6+
del_runs:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
actions: write
10+
contents: read
11+
steps:
12+
- name: Delete workflow runs
13+
uses: Mattraks/delete-workflow-runs@v2
14+
with:
15+
token: ${{ github.token }}
16+
repository: ${{ github.repository }}
17+
retain_days: 30
18+
keep_minimum_runs: 6

.github/workflows/delete-old-runs.yml renamed to .github/workflows/delete-old-runs-manually.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Delete old workflow runs
1+
name: Delete old workflow runs (manually)
22
on:
33
workflow_dispatch:
44
inputs:

0 commit comments

Comments
 (0)