ci(check-quotes): 增加引号检查 (#4845)

ci(check-quotes): add check-quotes workflow
pull/4840/head^2
CCXXXI 2023-04-17 20:05:31 +08:00 committed by GitHub
parent f2abb16e28
commit 6b66558331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

16
.github/workflows/check-quotes.yml vendored Normal file
View File

@ -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