aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/commitlint.yml
blob: 4c9c52694607d4dbaf349bedb77dcab355171f95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
name: "Commit Linter"
on: pull_request
jobs:
  lint-commits:
    runs-on: ubuntu-latest
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    steps:
      - uses: actions/checkout@v2.3.1
        with:
          fetch-depth: 0
      - uses: rhysd/action-setup-vim@v1
        with:
          neovim: true
      - run: gh pr checkout ${{ github.event.pull_request.number }}
      - run: nvim --clean -es +"lua require('scripts.lintcommit').main({trace=true})"