Clean-up old workflow runs #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clean-up old workflow runs | |
on: | |
schedule: | |
- cron: "15 5 * * 0" # 5:15am every Sunday | |
workflow_dispatch: | |
jobs: | |
do-clean-up: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run workflow housekeeper | |
uses: josiahsiegel/workflow-housekeeper@v1.1.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
ignore-branch-workflows: false | |
retention-time: "4 weeks" | |
retain-run-count: 30 | |
dry-run: false |