Skip to content

Housekeeping

Housekeeping #741

Workflow file for this run

name: Housekeeping
# checks are on all directories
on:
# Run weekly at 6:30
schedule:
- cron: '30 6 * * 6'
workflow_dispatch:
# for security reasons the github actions are pinned to specific release versions
jobs:
chores:
name: Tidy workflows
runs-on: ubuntu-24.04
permissions:
actions: write
steps:
- name: Delete stale workflow runs
uses: Mattraks/delete-workflow-runs@v2.1.0
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 28
keep_minimum_runs: 10
- name: Delete unused workflows
uses: otto-de/purge-deprecated-workflow-runs@v4.0.2
with:
token: ${{ github.token }}
stale:
name: Tidy pull requests
runs-on: ubuntu-24.04
permissions:
pull-requests: write
issues: write
steps:
- name: Tidy stale PRs and issues
uses: actions/stale@v10.1.1
with:
days-before-issue-stale: 183
days-before-issue-close: -1
stale-issue-message: 'This issue is stale because it has been open for 6 months with no activity.'
stale-issue-label: stale
remove-issue-stale-when-updated: true
days-before-pr-stale: 21
days-before-pr-close: 7
stale-pr-message: 'This PR is stale because it has been open 21 days with no activity. Remove stale label, or add a comment, otherwise it will be closed in 7 days.'
close-pr-message: 'This PR was closed because it has been stalled for 4 weeks with no activity.'