Skip to content

Create .markdownlint.json #20

Create .markdownlint.json

Create .markdownlint.json #20

Workflow file for this run

name: markdown-linting
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get changed files
id: changed_files
run: echo "::set-output name=files::$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})"
- name: Filter Markdown files
id: filter_files
run: echo "::set-output name=markdown_files::$(echo '${{ steps.changed_files.outputs.files }}' | grep '\.md$')"
- name: Markdown Linter
uses: DavidAnson/markdownlint-cli2-action@v15
with:
globs: ${{ steps.filter_files.outputs.markdown_files }}