diff --git a/.github/workflows/pr-spell-check.yml b/.github/workflows/pr-spell-check.yml index 6c015e2..d40c658 100644 --- a/.github/workflows/pr-spell-check.yml +++ b/.github/workflows/pr-spell-check.yml @@ -3,5 +3,7 @@ on: - pull_request jobs: - check: - uses: TDesignOteam/workflows/.github/workflows/spell-check.yml@main + call-check: + uses: TDesignOteam/workflows/.github/workflows/reusable-spell-check.yml@main + with: + config: .github/workflows/typos-config.toml diff --git a/.github/workflows/reusable-spell-check.yml b/.github/workflows/reusable-spell-check.yml new file mode 100644 index 0000000..ff1ab72 --- /dev/null +++ b/.github/workflows/reusable-spell-check.yml @@ -0,0 +1,20 @@ +name: spell-check +on: + workflow_call: + inputs: + config: + required: false + type: string + default: '' + +jobs: + check: + name: Typos + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6.0.2 + + - name: Check spelling + uses: crate-ci/typos@v1.46.1 + with: + config: ${{ inputs.config }}