autopep8-suggester.yml 661 B

123456789101112131415161718192021
  1. name: autopep8-suggester-action
  2. on: [pull_request]
  3. jobs:
  4. linter_name:
  5. name: autopep8-suggester
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v2
  9. - name: autopep8
  10. id: autopep8
  11. uses: peter-evans/autopep8@v1
  12. with:
  13. args: --exit-code --jobs 0 --recursive --in-place --aggressive --aggressive .
  14. - name: Annotate diff changes using reviewdog
  15. if: steps.autopep8.outputs.exit-code == 2
  16. uses: reviewdog/action-suggester@v1
  17. with:
  18. tool_name: autopep8
  19. - name: Fail if autopep8 made changes
  20. if: steps.autopep8.outputs.exit-code == 2
  21. run: exit 1