Skip to content

Link Check

Link Check #410

Workflow file for this run

name: Link Check
on:
workflow_dispatch:
schedule:
- cron: "45 15 * * *"
permissions:
contents: read
security-events: write
jobs:
test:
timeout-minutes: 30
runs-on: ubuntu-latest
name: Link Check
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node.js
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: lts/*
- run: npm install textlint textlint-rule-no-dead-link @microsoft/eslint-formatter-sarif
- run: npx textlint site/posts/*.md --rule no-dead-link -f @microsoft/eslint-formatter-sarif -o textlint.sarif || exit 0 # workaround https://github.com/textlint/textlint/issues/103
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
with:
sarif_file: textlint.sarif
category: textlint