forked from OI-wiki/OI-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 967 Bytes
/
check-characters.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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