gregbell/active_admin

View on GitHub
.github/workflows/markdown-lint.yml

Summary

Maintainability
Test Coverage
name: Markdown Lint

on:
  pull_request:

env:
  MARKDOWNLINT_FLAGS: ${{ vars.REVIEWDOG_MARKDOWNLINT_FLAGS || '--git-recurse .' }}

jobs:
  markdownlint:
    name: Run markdownlint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: tj-actions/changed-files@v44
        id: changed-files
        with:
          files: |
            **.md
            .markdownlint.yml
            .github/workflows/markdown-lint.yml
      - uses: reviewdog/action-markdownlint@v0
        if: steps.changed-files.outputs.any_changed == 'true'
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          filter_mode: nofilter # added (default), diff_context, file, nofilter
          fail_on_error: true
          markdownlint_flags: ${{ env.MARKDOWNLINT_FLAGS }}
          reporter: github-pr-check