ci(commitlint): add commitlint to github actions

This commit is contained in:
Rémi Alvergnat
2020-12-23 23:01:09 +01:00
parent 2c8b25e77f
commit fe0696646f
+9
View File
@@ -43,6 +43,15 @@ jobs:
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
commitlint:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v2
release:
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
needs: build