Skip to content

Fix Markdown Lint

Fix Markdown Lint #68

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 show --pretty="" --name-only ${{ github.sha }} | grep '\.md$' | tr '\n' ',' | sed 's/,$//')"
- name: Markdown Linter
uses: DavidAnson/markdownlint-cli2-action@v15
with:
globs: ${{ steps.changed_files.outputs.files }}