mirror of https://github.com/OI-wiki/OI-wiki
parent
f2abb16e28
commit
6b66558331
|
@ -0,0 +1,16 @@
|
|||
name: Check quotes
|
||||
|
||||
on: [ pull_request ]
|
||||
|
||||
jobs:
|
||||
check-quotes:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- run: |
|
||||
if git diff -G[“”] HEAD^ -- '*.md' | grep ^+.*[“”]; then
|
||||
echo '::error::由于 `“……”` 未区分全半角,请使用 `「……」` 作为全角引号,`"..."` 作为半角引号。'
|
||||
exit 1
|
||||
fi
|
Loading…
Reference in New Issue