You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
548 B

  1. name: Commit lint
  2. on:
  3. push:
  4. branches: [master, features]
  5. pull_request:
  6. branches: [master, features]
  7. jobs:
  8. commitlint:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v1
  12. - name: Set up Python
  13. uses: actions/setup-python@v1
  14. with:
  15. python-version: 3.9
  16. - name: Install dependencies
  17. run: |
  18. pip install --upgrade pip comlipy
  19. - name: Lint
  20. run: |
  21. message="$(git log --format=%B -n 1 HEAD)"
  22. echo $message
  23. comlipy -c config-comlipy.yml "$message"