Skip to content

Commit

Permalink
Create cleanup_wf_runs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
M-7th authored Nov 27, 2023
1 parent 43415dc commit 2209c2b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/cleanup_wf_runs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Delete old workflow runs
on:
#schedule:
## Run monthly, at 00:00 on the 1st day of month.
# - cron: '0 0 1 * *'

workflow_dispatch:

jobs:
del_runs:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 7
keep_minimum_runs: 6

0 comments on commit 2209c2b

Please sign in to comment.