ci: use codespell instead of misspell-fixer (#18686)
Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
parent
7f540e26f9
commit
1f741d45bb
5
.github/.codespellignore
vendored
Normal file
5
.github/.codespellignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
cips
|
||||
pullrequest
|
||||
keypair
|
||||
stStr
|
||||
pastTime
|
||||
4
.github/.misspell-fixer.ignore
vendored
4
.github/.misspell-fixer.ignore
vendored
@ -1,4 +0,0 @@
|
||||
\*.pulsar.go
|
||||
\*.pb.go
|
||||
\*.pb.gw.go
|
||||
\*.cosmos_orm.go
|
||||
16
.github/workflows/misspell.yml
vendored
16
.github/workflows/misspell.yml
vendored
@ -2,7 +2,7 @@ name: Fix typos nightly
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 8 * * *"
|
||||
- cron: "0 12 * * *"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -10,15 +10,19 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: sobolevn/misspell-fixer-action@e5368f1b21585248afad4d32df9bc100451dbbff
|
||||
- name: Run codespell
|
||||
continue-on-error: true
|
||||
run: |
|
||||
sudo apt-get install codespell -y
|
||||
codespell -w --skip="*.pulsar.go,*.pb.go,*.pb.gw.go,*.cosmos_orm.go,*.json,*.git,*.js,crypto/keys,fuzz,*.h" --ignore-words=".github/.codespellignore"
|
||||
- uses: peter-evans/create-pull-request@v5
|
||||
with:
|
||||
token: ${{ secrets.PRBOT_PAT }}
|
||||
commit-message: "chore: fixes by misspell-fixer"
|
||||
title: "chore: typos fix by misspell-fixer"
|
||||
commit-message: "chore: fixes by cosmos-sdk bot"
|
||||
title: "chore: typos fixes by cosmos-sdk bot"
|
||||
branch: "bot/fix-typos"
|
||||
delete-branch: true
|
||||
body: |
|
||||
This PR fixes typos in the codebase.
|
||||
Please, review it and merge if everything is fine.
|
||||
If there is proto changes, please, run `make proto-gen` and commit changes.
|
||||
Please review it, and merge if everything is fine.
|
||||
If there are proto changes, run `make proto-gen` and commit the changes.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user