Skip to content

Commit

Permalink
Add janitor workflow for cleaning old runs and artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
blackfyre committed Oct 25, 2023
1 parent 0a4c014 commit ab0b6a4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/janitor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Janitor
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * *"
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: clean workflow runs
uses: boredland/action-purge-workflow-runs@main
with:
days-old: 30
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Remove old artifacts
uses: c-hive/gha-remove-artifacts@v1
with:
age: "30 days"
skip-tags: true
skip-recent: 5

0 comments on commit ab0b6a4

Please sign in to comment.