Skip to content

Commit

Permalink
Merge branch 'master' of github.com:calimero-network/core into chore-…
Browse files Browse the repository at this point in the history
…-add-commitizen
  • Loading branch information
MatejVukosav committed Nov 21, 2024
2 parents 7c460f2 + e6cd59f commit 1c8e37d
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 244 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/conventional_commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check Conventional Commit Messages

on:
push:
branches:
- "chore: add commitizen"

jobs:
validate-commit:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install commitlint
run: |
npm install --global @commitlint/cli @commitlint/config-conventional
- name: Fetch last commit
run: |
LAST_COMMIT=$(git log -1 --pretty=format:"%s")
echo "Commit message: $LAST_COMMIT"
echo "commit_message=$LAST_COMMIT" >> $GITHUB_ENV
- name: Validate commit message
run: commitlint --env-commit-message
env:
commit_message: ${{ env.commit_message }}
Loading

0 comments on commit 1c8e37d

Please sign in to comment.