[Modify/Add] Implement Typos Workflow
This commit is contained in:
19
.github/workflows/typos.yml
vendored
Normal file
19
.github/workflows/typos.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Check typos
|
||||
on:
|
||||
pull_request:
|
||||
jobs:
|
||||
run:
|
||||
name: Spell Check with Typos
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Actions Repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v14.4
|
||||
- name: Check spelling of file.txt
|
||||
if: ${{ steps.changed-files.outputs.all_changed_files != '' }}
|
||||
uses: crate-ci/typos@master
|
||||
with:
|
||||
files: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
config: ./.typos.toml
|
||||
Reference in New Issue
Block a user