name: Check markdown links on: push: paths: - "**.md" pull_request: paths: - "**.md" schedule: - cron: "45 22 * * 1,4" # Restrict jobs in this workflow to have no permissions by default; permissions # should be granted per job as needed using a dedicated `permissions` block permissions: {} jobs: check: permissions: contents: read # to fetch code (actions/checkout) runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - uses: tcort/github-action-markdown-link-check@e7c7a18363c842693fadde5d41a3bd3573a7a225 # v1.1.2 with: use-quiet-mode: "yes" base-branch: "main" check-modified-files-only: ${{ github.event_name == 'schedule' && 'yes' || 'no'}}