Check Markdown links #4218
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 9 * * 1-5" # run once a day, M-F | |
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@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit # Leave it audit mode | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- 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 |