diff --git a/.github/workflows/reviewdog-markdown.yml b/.github/workflows/reviewdog-markdown.yml index 67e95772b07..f7d5c7a570b 100644 --- a/.github/workflows/reviewdog-markdown.yml +++ b/.github/workflows/reviewdog-markdown.yml @@ -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 @@ -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"