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.

commitlint.yml 411 B

123456789101112131415161718192021
  1. name: Commit lint
  2. on: [push]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v1
  8. - name: Use Node.js
  9. uses: actions/setup-node@v1
  10. with:
  11. node-version: 13.x
  12. - name: setup
  13. run: |
  14. npm install -g @commitlint/cli @commitlint/config-conventional
  15. - name: commitlint
  16. run: |
  17. git log --format=%B -n 1 $GITHUB_SHA | commitlint