diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml new file mode 100644 index 000000000..43002872f --- /dev/null +++ b/.github/workflows/commitlint.yml @@ -0,0 +1,18 @@ +name: Commitlint + +on: [push, pull_request] + +jobs: + commitlint: + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - name: Checkout + uses: actions/checkout@master + with: + fetch-depth: 0 + - name: Lint commit messages + uses: wagoid/commitlint-github-action@v1 + with: + configFile: './.commitlintrc.yml'