Merge pull request #426 from Sharpie/server-8151-breaks-ipv6-dns #797
This file contains hidden or 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 Lint | |
| on: | |
| pull_request: {} | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| jobs: | |
| markdown-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: List tracked Markdown files | |
| id: tracked-markdown | |
| shell: bash | |
| # Lint git-tracked files only. This lints the canonical versioned dirs | |
| # once and skips the `_latest` symlinks (git stores them as single | |
| # symlink entries, so a filesystem glob would double-lint their targets). | |
| # It also excludes generated reference docs, which are gitignored. | |
| run: | | |
| { | |
| echo 'files<<EOF' | |
| git ls-files '*.md' '*.markdown' | |
| echo 'EOF' | |
| } >> "${GITHUB_OUTPUT}" | |
| - name: Lint tracked Markdown files | |
| uses: DavidAnson/markdownlint-cli2-action@v24 | |
| with: | |
| globs: ${{ steps.tracked-markdown.outputs.files }} |