Skip to content

Commit

Permalink
Chore: Add action for deleting old workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Larvan2 committed Jan 30, 2023
1 parent 8a75f78 commit 53b41ca
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/Delete.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Delete old workflow runs
on:
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: GitRML/delete-workflow-runs@main
with:
token: ${{ secrets.AUTH_PAT }}
repository: ${{ github.repository }}
retain_days: 30

0 comments on commit 53b41ca

Please sign in to comment.