Skip to content

Commit b7ee942

Browse files
authored
ci: 迁移拼写检查为本地可复用工作流 (#66)
* ci: 迁移拼写检查为本地可复用工作流 * ci: 更新拼写检查工作流引用分支 * ci(spell-check): 添加自定义拼写检查配置 * ci: 更新拼写检查工作流配置
1 parent 76a369a commit b7ee942

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

.github/workflows/pr-spell-check.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ on:
33
- pull_request
44

55
jobs:
6-
check:
7-
uses: TDesignOteam/workflows/.github/workflows/spell-check.yml@main
6+
call-check:
7+
uses: TDesignOteam/workflows/.github/workflows/reusable-spell-check.yml@main
8+
with:
9+
config: .github/workflows/typos-config.toml
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: spell-check
2+
on:
3+
workflow_call:
4+
inputs:
5+
config:
6+
required: false
7+
type: string
8+
default: ''
9+
10+
jobs:
11+
check:
12+
name: Typos
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v6.0.2
16+
17+
- name: Check spelling
18+
uses: crate-ci/typos@v1.46.1
19+
with:
20+
config: ${{ inputs.config }}

0 commit comments

Comments
 (0)