Skip to content

Housekeeping

Housekeeping #80

Workflow file for this run

name: Housekeeping
on:
# Run daily at 7:00
schedule:
- cron: '0 7 * * *'
workflow_dispatch:
# for security reasons the github actions are pinned to specific release versions
jobs:
chores:
name: Tidy workflows
runs-on: ubuntu-22.04
permissions:
actions: write
steps:
- name: Delete stale workflow runs
uses: Mattraks/delete-workflow-runs@v2.0.6
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 28
keep_minimum_runs: 25
- name: Delete unused workflows
uses: otto-de/purge-deprecated-workflow-runs@v2.0.3
with:
token: ${{ github.token }}
link_checker:
name: Link checker
runs-on: ubuntu-22.04
steps:
- name: Checkout markdown
uses: actions/checkout@v4.1.1
- name: Link Checker
uses: lycheeverse/lychee-action@v1.9.1
with:
args: --verbose --no-progress --max-retries 5 '**/*.md' '*.md'
fail: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}