ci: add conventional commit lint check to PR titles #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint PR Title | |
on: | |
pull_request: | |
types: [opened, synchronize, edited] | |
jobs: | |
commitlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Install commitizen" | |
run: pip install --user -U commitizen | |
- name: "Lint the PR title" | |
env: | |
TITLE: ${{ github.event.pull_request.title }} | |
run: echo "${TITLE}" | cz check |