Skip to content

Link Check

Link Check #287

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@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Setup Node.js
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
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@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11
with:
sarif_file: textlint.sarif
category: textlint