From 18f2aa71320cc30006a63765ec8ae96914864598 Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" <148610067+eshanized@users.noreply.github.com> Date: Tue, 18 Jun 2024 03:33:56 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(workflows):=20conventional?= =?UTF-8?q?=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/commitizen.yml | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/.github/workflows/commitizen.yml b/.github/workflows/commitizen.yml index ee31a29..3f3844a 100644 --- a/.github/workflows/commitizen.yml +++ b/.github/workflows/commitizen.yml @@ -1,33 +1,27 @@ -name: Commitizen Check on Push and Pull +name: Conventional Commit Check on: push: branches: - - master - pull_request: - branches: - - master + - master # Adjust to match your main branch name jobs: - commitizen_check: - name: Check Commitizen Commit on Push + check-commits: runs-on: ubuntu-latest steps: - - name: Checkout Repository + - name: Checkout repository uses: actions/checkout@v2 - - name: Install Node.js - uses: actions/setup-node@v3 + - name: Set up Node.js + uses: actions/setup-node@v2 with: - node-version: "14" + node-version: '16' - - name: Install Commitizen - run: npm install -g commitizen + - name: Install dependencies + run: npm install # Ensure to have npm dependencies set up - - 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 \ No newline at end of file + - name: Run commit script + run: bash ./push.sh + + # You can add additional steps here for testing, linting, etc. \ No newline at end of file