Skip to content

Commit

Permalink
Merge pull request #50 from wusatosi/fix-review-dog
Browse files Browse the repository at this point in the history
Fix review dog
  • Loading branch information
camio authored Oct 19, 2024
2 parents 1ba4f15 + 1fd7071 commit 9aa88cd
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
name: pre-commit
permissions:
contents: read
checks: write
issues: write
pull-requests: write

steps:
Expand All @@ -21,12 +23,6 @@ jobs:
with:
python-version: 3.13

- name: Cache pre-commit hooks
uses: actions/cache@v2
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-precommit-${{ hashFiles('.pre-commit-config.yaml') }}

- name: Get Changed Files
id: changed-files
uses: tj-actions/changed-files@v45
Expand All @@ -39,8 +35,9 @@ jobs:
continue-on-error: true

- name: suggester / pre-commit
if: ${{ github.event_name == 'pull_request' }}
uses: reviewdog/action-suggester@v1
with:
tool_name: pre-commit
fail_on_error: true
level: warning
reviewdog_flags: "-fail-level=error"

0 comments on commit 9aa88cd

Please sign in to comment.