Skip to content

Update markdown-lint.yml #133

Update markdown-lint.yml

Update markdown-lint.yml #133

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
run: |
echo "CHANGED_FILES=$(gh pr diff ${{ github.event.number }} --name-only | grep '**\*.md$' | xargs -I {} echo "{}")" >> $GITHUB_ENV
- name: Markdown Linter
uses: DavidAnson/markdownlint-cli2-action@v15
with:
globs: ${{ env.CHANGED_FILES}}