style: format markdown files with remark-lint #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check the Markdown file for CJK radicals (or strokes) | |
name: Check CJK Characters | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
check: | |
name: Check CJK Characters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v42 | |
with: | |
files: | | |
docs/**/*.md | |
- name: Setup Python | |
if: steps.changed-files.outputs.any_changed == 'true' | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Make the File list | |
if: steps.changed-files.outputs.any_changed == 'true' | |
run: echo "${{ steps.changed-files.outputs.all_changed_files }}" > res.txt | |
- name: Scan Changed Files | |
if: steps.changed-files.outputs.any_changed == 'true' | |
run: python scripts/check-characters.py |