Skip to content

Commit 515dfe6

Browse files
authored
fix: only use commitlint on main (#49)
Signed-off-by: Chapman Pendery <cpendery@microsoft.com>
1 parent 3161de6 commit 515dfe6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
run: npm ci
2727

2828
- name: Run commitlint
29-
if: github.event_name == 'pull_request'
30-
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --verbose
29+
if: github.event_name == 'push'
30+
run: npx commitlint --from ${{ github.event.before }} --to ${{ github.event.after }} --verbose
3131

3232
- name: setup macOS shells
3333
if: matrix.os == 'macos-latest'

0 commit comments

Comments
 (0)