markdown.yml 706 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Markdown
  2. on:
  3. pull_request:
  4. paths:
  5. - "*.md"
  6. - "**/*.md"
  7. push:
  8. paths:
  9. - "*.md"
  10. - "**/*.md"
  11. permissions:
  12. contents: "read"
  13. concurrency:
  14. group: ${{ github.workflow }}-${{ github.ref }}
  15. cancel-in-progress: true
  16. jobs:
  17. markdownlint:
  18. name: Lint markdown files
  19. runs-on: ubuntu-latest
  20. timeout-minutes: 1
  21. steps:
  22. - name: Checkout repository
  23. uses: actions/checkout@v4
  24. - name: Configure Ruby
  25. uses: ruby/setup-ruby@v1
  26. with:
  27. ruby-version: '3.2'
  28. bundler-cache: true
  29. - name: Install markdownlint
  30. run: gem install mdl
  31. - name: Check markdown files
  32. run: mdl --git-recurse .