Skip to content

Cleanup and Maintainance #136

Cleanup and Maintainance

Cleanup and Maintainance #136

name: "Cleanup and Maintainance"
on:
workflow_dispatch:
schedule:
- cron: "18 23 * * 1"
jobs:
stale:
runs-on: ubuntu-latest
name: Close Stale PRs
permissions:
pull-requests: write
steps:
- uses: actions/stale@v9
with:
days-before-stale: 60
days-before-close: 10
workflows:
runs-on: ubuntu-latest
name: Cleanup old workflow runs
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
# same as "Artifact and log retention" in https://github.com/B3Partners/kadaster-gds2/settings/actions
retain_days: 90
keep_minimum_runs: 2