Skip to content

Commit 7bce2af

Browse files
committed
revert: continue to fetch PR commits + 1
1 parent 29fec68 commit 7bce2af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

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

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

0 commit comments

Comments
 (0)