build: add spell-check.yml action.

This commit is contained in:
liqiang-fit2cloud 2022-10-21 15:14:16 +08:00
parent 7183e066de
commit d03b076449
1 changed files with 22 additions and 0 deletions

22
.github/workflows/spell-check.yml vendored Normal file
View File

@ -0,0 +1,22 @@
# refer to https://github.com/crate-ci/typos/blob/master/docs/github-action.md
name: Spell Check
on:
workflow_dispatch:
inputs:
branch:
description: 'Repo branch'
required: true
default: "main"
jobs:
run:
name: Spell Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}
- name: Check
uses: crate-ci/typos@master