您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

28 行
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"