Skip to content

github: Add prettier lint step. #7

github: Add prettier lint step.

github: Add prettier lint step. #7

Workflow file for this run

---
name: Lint markdown files prettier
on:
pull_request:
branches:
- main
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: creyD/[email protected]
with:
dry: true
prettier_options: "--write **/*.md"
- name: Check for any diff
run: |
if ! git diff --exit-code; then
echo "Changes found!"
git status
git diff
exit 1
fi