25 lines
601 B
YAML
25 lines
601 B
YAML
# Called by ci.yml to perform markdown linting
|
|
# See: https://docs.github.com/en/actions/using-workflows/reusing-workflows#creating-a-reusable-workflow
|
|
name: Lint - Markdown
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
run-markdownlint:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- name: check out code
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
- name: run markdownlint
|
|
uses: DavidAnson/markdownlint-cli2-action@992badcdf24e3b8eb7e87ff9287fe931bcb00c6e # v20.0.0
|
|
with:
|
|
globs: |
|
|
**/*.md
|
|
!.github/**/*.md
|