Skip to content

Link Check

Link Check #425

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@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
with:
sarif_file: textlint.sarif
category: textlint