Skip to content

Commit

Permalink
added cleanup action
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Nov 14, 2023
1 parent 40c7733 commit 3c07ce0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Delete old workflow runs
on:
schedule:
- cron: '0 15 14 * *'
# Run monthly, at 15:00 on the 14t day of month. (testing)

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: 30
keep_minimum_runs: 6

0 comments on commit 3c07ce0

Please sign in to comment.