lint-shell.yml 870 B

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. name: 🐶 SHELL check 🧪
  3. on:
  4. workflow_dispatch:
  5. concurrency:
  6. group: ${{ github.workflow }}-${{ github.ref }}
  7. cancel-in-progress: true
  8. jobs:
  9. reviewdog:
  10. permissions:
  11. checks: write
  12. contents: read
  13. pull-requests: write
  14. name: shellcheck
  15. runs-on: ubuntu-latest
  16. steps:
  17. - uses: actions/checkout@v4
  18. - uses: haya14busa/action-cond@v1
  19. id: reporter
  20. with:
  21. cond: ${{ github.event_name == 'pull_request' }}
  22. - uses: reviewdog/action-shellcheck@v1
  23. with:
  24. reporter: ${{ steps.reporter.outputs.value }}
  25. github_token: ${{ secrets.github_token }}
  26. path: |
  27. "."
  28. modules
  29. exclude: "./programs/*"
  30. check_all_files_with_shebangs: true
  31. level: error
  32. shellcheck_flags: '--external-sources --severity=error'