Skip to content

Commit 3a4b6e4

Browse files
committed
Write codecov results for the head commit, not merge head
1 parent 9ad2fff commit 3a4b6e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
files: coverage.xml
9696
flags: "${{ matrix.mongodb-version }}-${{ matrix.topology }}"
9797
token: ${{ secrets.CODECOV_TOKEN }}
98+
override_commit: "{{ github.event.pull_request.head.sha }}"
9899

99100
- name: Upload test results to Codecov
100101
uses: codecov/test-results-action@v1
@@ -103,3 +104,4 @@ jobs:
103104
files: test-results.xml
104105
flags: "${{ matrix.mongodb-version }}-${{ matrix.topology }}"
105106
token: ${{ secrets.CODECOV_TOKEN }}
107+
override_commit: "{{ github.event.pull_request.head.sha }}"

0 commit comments

Comments
 (0)