Skip to content

Commit b4ca8d9

Browse files
committed
Call directly
1 parent 05c17f9 commit b4ca8d9

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/pull-request.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v3
10-
- uses: wagoid/commitlint-github-action@v5
1110
with:
12-
commitDepth: ${{ github.event.pull_request.commits }}
11+
fetch-depth: 0
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 18.x
15+
- run: npm i
16+
- run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
1317
main:
1418
runs-on: ubuntu-latest
1519
steps:

.github/workflows/release.yaml

-7
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ on:
77

88

99
jobs:
10-
commitlint:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v3
14-
- uses: wagoid/commitlint-github-action@v5
15-
with:
16-
commitDepth: ${{ github.event.pull_request.commits }}
1710
main:
1811
runs-on: ubuntu-latest
1912
environment: DeployEnv

0 commit comments

Comments
 (0)