Skip to content

Commit

Permalink
fix: lint ci fails
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <[email protected]>
  • Loading branch information
hlts2 committed Feb 27, 2024
1 parent 0484619 commit 2796eb6
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/reviewdog-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ jobs:
textlint:
name: runner / textlint
runs-on: ubuntu-latest
env:
REVIEWDOG_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
steps:
- uses: actions/checkout@v4
- name: Set Git config
Expand All @@ -80,25 +82,25 @@ jobs:
make textlint/ci/install
- name: Run lint for files && Report to GitHub
run: |
make files/lint | \
reviewdog \
-f=checkstyle \
-name="files lint" \
-diff="git diff ${{ github.event.pull_request.base.ref }}" \
-reporter=github-pr-review \
-level="${LEVEL}"
make files/lint > ${RESULT_FILE}
reviewdog \
-f=checkstyle \
-name="files lint" \
-diff="git diff ${{ github.event.pull_request.base.ref }}" \
-reporter=github-pr-review \
-level="${LEVEL}" < ${RESULT_FILE}
env:
LEVEL: "error"
REVIEWDOG_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
RESULT_FILE: "result-files-lint.txt"
- name: Run lint for documents && Report to GitHub
run: |
make docs/lint | \
reviewdog \
-f=checkstyle \
-name="docs lint" \
-diff="git diff ${{ github.event.pull_request.base.ref }}" \
-reporter=github-pr-review \
-level="${LEVEL}"
make docs/lint > ${RESULT_FILE}
reviewdog \
-f=checkstyle \
-name="docs lint" \
-diff="git diff ${{ github.event.pull_request.base.ref }}" \
-reporter=github-pr-review \
-level="${LEVEL}" < ${RESULT_FILE}
env:
LEVEL: "error"
REVIEWDOG_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
RESULT_FILE: "result-docs-lint.txt"

0 comments on commit 2796eb6

Please sign in to comment.