Skip to content

Commit

Permalink
Use local codespell workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
plettich committed Dec 10, 2024
1 parent e05abdb commit 3828b7a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
1 change: 1 addition & 0 deletions .codespell_ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assertIn
29 changes: 8 additions & 21 deletions .github/workflows/rd_codespell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,13 @@ on:
pull_request:

jobs:
reviewdog-github-check:
permissions:
checks: write
contents: read
pull-requests: write
name: reviewdog (github-check)
codespell:
name: runner / codespell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install codespell
run: |
python -m pip install -U codespell
- name: Setup reviewdog
uses: reviewdog/action-setup@v1

- name: Run reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
codespell -q 3 -S $(paste -s -d, .codespell_skip) -L assertIn . \
| reviewdog -efm="%f:%l: %m" -name="codespell" -reporter=github-pr-check -level=warning
- uses: actions/checkout@v1
- name: codespell
uses: plettich/action-codespell@master
with:
reporter: github-pr-review
level: info

0 comments on commit 3828b7a

Please sign in to comment.