Files
snigdhaos-arctic/.github/workflows/snigdhaos-commitizen.yml
Eshan Roy (Eshanized) a3ee2e3e8b refactor(db): update action
2024-05-02 21:16:14 +05:30

31 lines
763 B
YAML

name: Snigdha OS Commitizen Check
on:
push:
branches:
- master
jobs:
commitizen_check:
name: Check Commitizen Commit
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Install Commitizen
run: npm install -g commitizen
- name: Verify Commitizen Commit
run: |
if git log --format='%s' ${{ github.event.before }}..${{ github.sha }} | grep -v '^(feat|fix|docs|style|refactor|perf|test|chore)(\(.+\))?: .+'; then
echo "Invalid commit message found. Please use Commitizen convention."
exit 1
fi