Skip to content

Commit

Permalink
actions: Ensure mdformat uses check mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Parnell committed Nov 2, 2022
1 parent 4d01d56 commit aba0e78
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/mdformat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@ jobs:
name: Mdformat Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Mdformat Action
uses: ydah/mdformat-action@main
with:
number: true
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.9
architecture: x64
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
- run: pip install -r requirements.txt
- run: mdformat --check ./docs/**/*.md

0 comments on commit aba0e78

Please sign in to comment.