Skip to content

setup typos check in CI #1

setup typos check in CI

setup typos check in CI #1

Workflow file for this run

# This workflow posts review comment from spellchecker
name: post review
on:
# workflow_run:
# workflows: [Spellcheck]
# types:
# - completed
pull_request:
branches:
- "**"
jobs:
post_review:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }}
steps:
- name: download spellcheck results
uses: actions/download-artifact@v4
with:
name: spellcheck-artifact
run-id: ${{ github.event.workflow_run.id }}
- name: install reviewdog
uses: reviewdog/action-setup@v1
with:
reviewdog_version: v0.20.3
- name: run reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI_PULL_REQUEST: ${{ github.event.workflow_run.pull_requests[0].number }}
run: |
reviewdog \
-f=diff \
-f.diff.strip=1 \
-reporter="github-pr-review" \
-filter-mode=diff_context \
-level=error < spellcheck_results.diff