From c939cde6f460e2343d408d6a2d2404ee6e44eeb3 Mon Sep 17 00:00:00 2001 From: Marius Poke Date: Fri, 15 Dec 2023 14:47:01 +0100 Subject: [PATCH] ci: add codespell nightly workflow (#1505) * add codespell nightly workflow * add new lines --- .github/.codespellignore | 3 +++ .github/workflows/codespell.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/.codespellignore create mode 100644 .github/workflows/codespell.yml diff --git a/.github/.codespellignore b/.github/.codespellignore new file mode 100644 index 0000000000..3fc9037efb --- /dev/null +++ b/.github/.codespellignore @@ -0,0 +1,3 @@ +clienta +connectiona +sover diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000000..600c45017f --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,28 @@ +name: Fix typos nightly + +on: + schedule: + - cron: "0 12 * * *" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Run codespell + continue-on-error: true + run: | + sudo apt-get install codespell -y + codespell -w --skip="*.pb.go,*.pb.gw.go,*.json,*.git,*.js" --ignore-words=.github/.codespellignore + - uses: peter-evans/create-pull-request@v5 + with: + token: ${{ secrets.PRBOT_PAT }} + commit-message: "chore: spelling errors fixes" + title: "chore: fix spelling errors" + 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 are proto changes, run `make proto-gen` and commit the changes.