Skip to content

Commit

Permalink
Merge pull request #78 from tnfshcec/chore/autocorrect-lint
Browse files Browse the repository at this point in the history
chore: create AutoCorrect github action
  • Loading branch information
Eggrror404 authored Apr 10, 2024
2 parents d48d8d5 + dff6355 commit 3b46f10
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/autocorrect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: AutoCorrect Lint

on:
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Lint with AutoCorrect and report
uses: huacnlee/autocorrect-action@v2
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: --lint $(git diff --diff-filter=AM --name-only ${{ github.event.pull_request.base.sha }})
reviewdog: true

0 comments on commit 3b46f10

Please sign in to comment.