Skip to content

feat: add pangu linter #8

feat: add pangu linter

feat: add pangu linter #8

Workflow file for this run

name: Check Markdown format
on:
pull_request:
types: [ synchronize, opened, reopened ]
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
list-files: shell
filters: |
markdown:
- added|modified: '**/*.md'
- name: Install packages
if: ${{ steps.changes.outputs.markdown == 'true' }}
run: pip install -U pangu
- name: Check format
if: ${{ steps.changes.outputs.markdown == 'true' }}
run: for markdown_file in ${{ steps.changes.outputs.markdown_files }}; do pangu -f ${markdown_file} > /tmp/pangu_tmp.md; diff ${markdown_file} /tmp/pangu_tmp.md; done