Skip to content

Commit

Permalink
Improve CI to use ReviewDog to report the AutoCorrect suggestions. (#205
Browse files Browse the repository at this point in the history
)
  • Loading branch information
huacnlee authored Aug 2, 2023
1 parent 56d6e96 commit 5ff2f5c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/autocorrect.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Autocorrect
on: [push, pull_request]
on: [pull_request]
jobs:
autocorrect:
name: Check text autocorrect
Expand All @@ -12,3 +12,14 @@ jobs:

- name: Exec autocorrect
uses: huacnlee/autocorrect-action@main
with:
use_npm: true

- name: Report ReviewDog
if: failure()
uses: huacnlee/autocorrect-action@main
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
use_npm: true
reviewdog: true

0 comments on commit 5ff2f5c

Please sign in to comment.