Browse Source

[CI] Fix checkstyle & review dog don't work (#10812)

kezhenxu94 2 years ago
parent
commit
8320490da3
2 changed files with 3 additions and 1 deletions
  1. 1 1
      .github/actions/sanity-check/action.yml
  2. 2 0
      .github/workflows/backend.yml

+ 1 - 1
.github/actions/sanity-check/action.yml

@@ -47,7 +47,7 @@ runs:
       run: |
         if [[ -n "${{ inputs.token }}" ]]; then
           reviewdog -f=checkstyle \
-            -reporter="github-pr-check" \
+            -reporter="github-pr-review" \
             -filter-mode="added" \
             -fail-on-error="true" < target/checkstyle-result.xml
         fi

+ 2 - 0
.github/workflows/backend.yml

@@ -71,6 +71,8 @@ jobs:
           distribution: 'adopt'
       - name: Sanity Check
         uses: ./.github/actions/sanity-check
+        with:
+          token: ${{ secrets.GITHUB_TOKEN }}
       - uses: actions/cache@v3
         with:
           path: ~/.m2/repository