Skip to content

Commit 24a49b5

Browse files
NisTunDimitrisJimdamiannolan
authored
[chores] Update spell checker (#7721)
* update spell checker * Update .github/workflows/spell-checker.yml * update with DimitrisJim's review * Update .github/workflows/spell-checker.yml Co-authored-by: Damian Nolan <damiannolan@gmail.com> --------- Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com> Co-authored-by: Damian Nolan <damiannolan@gmail.com>
1 parent f88b9b3 commit 24a49b5

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed
Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,33 @@
1-
name: Fix typos nightly
1+
name: Spell Check
22

33
on:
4-
workflow_dispatch: {} # enable manual running of workflow.
4+
pull_request:
55
schedule:
6-
- cron: "0 8 * * *"
6+
- cron: "0 12 * * *"
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
711

812
jobs:
913
build:
1014
runs-on: ubuntu-latest
1115

1216
steps:
1317
- uses: actions/checkout@v4
14-
- uses: sobolevn/misspell-fixer-action@26173e641ba08255d0c9826b8a873f8b96f76932
18+
- name: Run codespell
19+
continue-on-error: true
20+
run: |
21+
sudo apt-get install codespell -y
22+
codespell -w --skip="*.pb.go,*.pb.gw.go,*.json,*.git,*.js,*.h,*.bin,go.sum,go.mod,.github"
1523
- uses: peter-evans/create-pull-request@v7
24+
if: github.event_name != 'pull_request'
1625
with:
17-
token: ${{ secrets.GITHUB_TOKEN }}
18-
commit-message: "chore: fixes by misspell-fixer"
19-
title: "chore: typos fix by misspell-fixer"
26+
commit-message: "chore: spelling errors fixes"
27+
title: "chore: fix spelling errors"
2028
branch: "bot/fix-typos"
2129
delete-branch: true
2230
body: |
2331
This PR fixes typos in the codebase.
24-
Please, review it and merge if everything is fine.
25-
If there are proto changes, please, run `make proto-all` and commit changes.
32+
Please review it, and merge if everything is fine.
33+
If there are proto changes, run `make proto-all` and commit the changes.

0 commit comments

Comments
 (0)