Skip to content

Commit 29fec68

Browse files
committed
fix: only retrieve PR commits
1 parent 880469c commit 29fec68

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/conventional-commit-lint.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ jobs:
77
conventional-commit-lint:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Get all PR commits + 1
11-
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
12-
1310
- name: Checkout
1411
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1512
with:
1613
ref: ${{ github.event.pull_request.head.ref }}
17-
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
14+
fetch-depth: ${{ github.event.pull_request.commits }}
1815

1916
- name: Setup Node.js
2017
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2

0 commit comments

Comments
 (0)