Github Action for linting markdown files using mdformat
MIT License
Custom action for linting markdown files using mdformat.
Add the following workflow file to run the action:
# .github/workflows/mdformat.yml
name: Mdformat Action
on:
- pull_request
jobs:
mdformat:
name: Mdformat Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Mdformat Action
uses: ydah/mdformat-action@main
with:
number: true
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
file_or_dir
.
number
false
wrap
keep
end_of_line
lf
auto_correct
false