Skip to content

Commit

Permalink
feat: add GH action to remove old workflow logs (zdharma-continuum#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdoster authored May 5, 2022
1 parent 6934984 commit 6647bdc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/delete-old-workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Delete old workflow runs

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
delete_old_runs:
runs-on: ubuntu-latest
steps:
- name: Delete old workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
retain_days: 14
keep_minimum_runs: 50

0 comments on commit 6647bdc

Please sign in to comment.