Check Markdown links #4282
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: Check Markdown links | |
on: | |
schedule: | |
- cron: '0 0 1 * *' # run once a month on the first | |
workflow_dispatch: | |
# only allow one instance of this workflow to be running per PR or branch, cancels any that are already running | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
markdown-link-check: | |
runs-on: ubuntu-latest | |
# don't run this job if triggered by Dependabot | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit # Leave it audit mode | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: gaurav-nelson/github-action-markdown-link-check@5c5dfc0ac2e225883c0e5f03a85311ec2830d368 # v1 | |
with: | |
#use-quiet-mode: 'yes' | |
use-verbose-mode: 'yes' | |
config-file: '.github/workflows/markdowncheck.config.json' | |
#max-depth: 2 |