shellcheck.yaml 776 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: ShellCheck
  2. on:
  3. push:
  4. tags:
  5. - v*
  6. branches:
  7. - master
  8. - release-*
  9. pull_request:
  10. branches:
  11. - master
  12. - release-*
  13. # cancel the in-progress workflow when PR is refreshed.
  14. concurrency:
  15. group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
  16. cancel-in-progress: true
  17. permissions:
  18. contents: read
  19. jobs:
  20. shellcheck:
  21. name: Shellcheck
  22. runs-on: ubuntu-latest
  23. steps:
  24. - uses: actions/checkout@v4
  25. - name: Run ShellCheck
  26. uses: ludeeus/action-shellcheck@master
  27. with:
  28. severity: warning
  29. check_together: 'yes'
  30. disable_matcher: false
  31. additional_files: build/reset build/sed-in-place
  32. ignore: olm
  33. format: gcc