Skip to content

Commit

Permalink
fix: fix the broken CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarmos-san committed Sep 24, 2023
1 parent 5359d1f commit 0707086
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Lint Commit Messages

on:
pull_request:
push:
branches-ignore:
- dependabot/**
Expand All @@ -13,19 +14,5 @@ jobs:
- name: Checkout Repository
uses: actions/[email protected]

- name: Install Commitlint
run: |
npm install conventional-changelog-conventionalcommits
npm install commitlint@latest
- name: Validate Current Commit (Last Commit) With Commitlint
if: github.event_name == "push"
run: |
npx commitlint --from HEAD~1 --to HEAD --verbose
- name: Validate PR Commits With Commitlint
if: github.event_name == "pull_request"
run:
npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{
github.event.pull_request.commits }} --to ${{
github.event.pull_request.head.sha }} --verbose
- name: Setup and Run Commitlint
uses: wagoid/[email protected]

0 comments on commit 0707086

Please sign in to comment.