run_gitlint.yaml 438 B

12345678910111213141516
  1. name: Run gitlint
  2. on: [pull_request]
  3. jobs:
  4. run_gitlint:
  5. runs-on: ubuntu-22.04
  6. steps:
  7. - uses: actions/checkout@v3
  8. with:
  9. fetch-depth: 0
  10. - name: Run gitlint
  11. shell: bash
  12. run: |
  13. set -ex
  14. docker run --ulimit nofile=1024 -v $(pwd):/repo -w /repo ghcr.io/emqx/gitlint --commits ${{ github.event.pull_request.base.sha }}..$GITHUB_SHA --config .github/workflows/.gitlint