Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 693fdba

Browse files
authored
Merge pull request #1412 from UziTech/commitlint
chore(ci): separate commitlint from lint
2 parents 65915ba + a56d381 commit 693fdba

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/CI.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ jobs:
4040
- uses: actions/checkout@v2
4141
with:
4242
fetch-depth: 0
43-
- name: Commit lint ✨
44-
uses: wagoid/commitlint-github-action@v3
4543

4644
- uses: UziTech/action-setup-atom@v1
4745
- name: Setup PNPM
@@ -58,8 +56,18 @@ jobs:
5856
- name: Lint ✨
5957
run: pnpm test.lint
6058

59+
CommitLint:
60+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@v2
64+
with:
65+
fetch-depth: 0
66+
- name: Commit lint ✨
67+
uses: wagoid/commitlint-github-action@v3
68+
6169
Release:
62-
needs: [Test, Lint]
70+
needs: [Test, CommitLint, Lint]
6371
if: github.ref == 'refs/heads/master' &&
6472
github.event.repository.fork == false
6573
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)