Skip to content

Fix Markdown Lint

Fix Markdown Lint #25

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: |
git diff --name-only -r HEAD^1 HEAD | while read -r file; do
echo "./${file}"
done
- name: Markdown Linter
uses: DavidAnson/markdownlint-cli2-action@v15
with:
globs: ${{ steps.changed_files.outputs.stdout }}