Skip to content

Commit fb80242

Browse files
authored
[ci] fix codecov upload (#3715)
1 parent 4b955cc commit fb80242

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/unit-integration-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ jobs:
279279
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
280280
with:
281281
ref: ${{ inputs.ref || github.ref }}
282+
fetch-depth: $(( ${{ github.event_name == 'pull_request' && github.event.pull_request.commits || 0 }} + 1 ))
282283

283284
- name: Setup Go
284285
uses: ./.github/actions/setup-go
@@ -348,6 +349,7 @@ jobs:
348349
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
349350
with:
350351
ref: ${{ inputs.ref || github.ref }}
352+
fetch-depth: $(( ${{ github.event_name == 'pull_request' && github.event.pull_request.commits || 0 }} + 1 ))
351353

352354
- name: Setup Go
353355
uses: ./.github/actions/setup-go

0 commit comments

Comments
 (0)