Files
NSPanel_HA_Blueprint/.github/workflows/validate_markdown.yml
Edward Firmo c08c133a15 Revert "Use yaml for rules"
This reverts commit 70e6a88638.
2024-01-05 09:17:49 +01:00

44 lines
1.1 KiB
YAML

name: Validate Markdown
on:
pull_request:
push:
workflow_dispatch:
jobs:
markdown-lint-quick:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4.1.0
# https://github.com/marketplace/actions/markdownlint-cli2-action
#- name: Identify changed files
# uses: tj-actions/changed-files@v41
# id: changed-files
# with:
# files: '**/*.md'
# separator: ","
- name: Markdown Lint
uses: DavidAnson/markdownlint-cli2-action@v14
# if: steps.changed-files.outputs.any_changed == 'true'
with:
# globs: ${{ steps.changed-files.outputs.all_changed_files }}
# separator: ","
config: '.rules/.markdownlint.jsonc'
#fix: true
markdown-links:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4.1.0
# https://github.com/gaurav-nelson/github-action-markdown-link-check
- name: Markdown links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
CHECK_MODIFIED_FILES: yes