Markdown files linting #1
Workflow file for this run
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: markdown | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/markdown.yml' | |
- '.github/markdownlint.json' | |
- '.github/markdownlint.jsonc' | |
- '**/*.md' | |
jobs: | |
markdown-lint: | |
name: Lint markdown files | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout devtools | |
uses: actions/checkout@v4 | |
- name: Register markdownlint warning matcher | |
run: | | |
echo "::add-matcher::.github/markdownlint.json" | |
- name: Lint markdown files | |
uses: avto-dev/markdown-lint@v1 | |
with: | |
args: '**/*.md' | |
config: '.github/markdownlint.jsonc' | |
ignore: 'third_party_licenses.md' | |
- name: Remove markdownlint warning matcher | |
if: always() | |
run: | | |
echo "::remove-matcher owner=markdownlint::" | |
- uses: gaurav-nelson/github-action-markdown-link-check@master | |
if: always() | |
with: | |
use-quiet-mode: 'yes' | |
use-verbose-mode: 'yes' | |
check-modified-files-only: 'yes' | |
base-branch: ${{ github.base_ref }} | |
config-file: '.github/markdown-link-check.jsonc' |