[Modify/Add] Implement Typos Workflow

This commit is contained in:
Kanani Nirav
2024-02-27 19:02:00 +09:00
parent 7b51cda58b
commit ff58794b55
6 changed files with 47 additions and 14 deletions

19
.github/workflows/typos.yml vendored Normal file
View 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