Skip to content

Commit

Permalink
Merge pull request #44 from blackfyre/add-janitorial-workflow
Browse files Browse the repository at this point in the history
Add janitor workflow for cleaning old runs and artifacts
  • Loading branch information
blackfyre authored Oct 25, 2023
2 parents 0a4c014 + ab0b6a4 commit 4be09e6
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 4be09e6

Please sign in to comment.