name: Markdown Linter
on:
  push:
    branches:
      - v0.38.x
    paths:
      - "**.md"
      - "**.yml"
      - "**.yaml"
  pull_request:
    branches:
      - v0.38.x
    paths:
      - "**.md"
      - "**.yml"

jobs:
  build:
    name: Super linter
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Code
        uses: actions/checkout@v4
      - name: Lint Code Base
        uses: docker://github/super-linter:v4
        env:
          VALIDATE_ALL_CODEBASE: true
          DEFAULT_BRANCH: v0.38.x
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          VALIDATE_MD: true
          VALIDATE_OPENAPI: true
          VALIDATE_YAML: true
          YAML_CONFIG_FILE: yaml-lint.yml
