Skip to content

Commit

Permalink
chore/ci: update linter condition
Browse files Browse the repository at this point in the history
  • Loading branch information
miurahr committed Dec 19, 2024
1 parent d98b916 commit 7ddf6e0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/run-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@ name: Run linter

on:
pull_request:
branches:
- master
types:
- opened
- synchronize
- reopened

jobs:
linter:
name: Linter
runs-on: ubuntu-22.04
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Setup python
Expand All @@ -23,7 +31,7 @@ jobs:
pip install .[check]
- name: run reviewdog
run: |
./bin/reviewdog -runners=flake8,mypy,pylint -reporter=github-pr-check -conf=.reviewdog.yml
./bin/reviewdog -runners=flake8,mypy -reporter=github-pr-review -conf=.reviewdog.yml
env:
REVIEWDOG_TOKEN: ${{ secrets.REVIEWDOG_TOKEN }}
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 7ddf6e0

Please sign in to comment.