check.yml 559 B

123456789101112131415161718192021222324
  1. name: check
  2. on: [pull_request, merge_group, workflow_dispatch, workflow_call]
  3. jobs:
  4. check:
  5. runs-on: ubuntu-latest
  6. name: Check
  7. steps:
  8. - name: Checkout
  9. uses: actions/checkout@v4
  10. with:
  11. fetch-depth: 0
  12. - name: AutoCorrect
  13. uses: huacnlee/autocorrect-action@v2
  14. - name: Report ReviewDog
  15. if: failure()
  16. uses: huacnlee/autocorrect-action@v2
  17. env:
  18. REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  19. with:
  20. reviewdog: true