Skip to content

Commit

Permalink
Delete old workflow runs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Jan 15, 2023
1 parent a8448a9 commit 4e6fbae
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/delete-old-workflow-runs.yml
@@ -0,0 +1,18 @@
name: Delete old workflow runs
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'
# Run monthly, at 00:00 on the 1st day of month.

jobs:
del_runs:
runs-on: ubuntu-latest
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 4e6fbae

Please sign in to comment.