on: pull_request
name: CI
jobs:
commitlint:
name: Commit lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4.6.1
with:
python-version: '3.x'
- name: Install gitlint
run: pip install gitlint
- run: gitlint --commits $(git merge-base origin/master HEAD)..