Skip to content

Commit

Permalink
Create DeleteOldRuns.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MentalBlank authored Dec 8, 2024
1 parent a742b56 commit f1b48d3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/DeleteOldRuns.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Delete old workflow runs
on:
workflow_dispatch:
schedule:
- cron: '0 16 * * *'

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

0 comments on commit f1b48d3

Please sign in to comment.