feat: add GH action to remove old workflow logs (#248)

This commit is contained in:
vladislav doster 2022-05-05 06:21:16 -04:00 committed by GitHub
parent 693498484a
commit 6647bdc31c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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