Skip to content

Commit 6b049b5

Browse files
committed
Use a different workaround for codecov issue 1296
1 parent 1c83e58 commit 6b049b5

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -223,32 +223,11 @@ jobs:
223223
if: '!matrix.coverity'
224224
run: ci/build.sh
225225

226-
- name: Collect coverage
227-
if: matrix.coverage
228-
run: ci/codecov.sh "collect"
229-
230-
# https://github.com/codecov/codecov-action/issues/1296
231-
- name: Get branch for coverage
232-
id: coverage_branch
233-
if: matrix.coverage
234-
run: |
235-
if [ "${{ github.event_name }}" = "push" ]; then
236-
echo "override_branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
237-
else
238-
echo "override_branch=" >> $GITHUB_OUTPUT
239-
fi
240-
241226
- name: Upload coverage
242227
if: matrix.coverage
243-
uses: codecov/codecov-action@v5
244-
with:
245-
disable_search: true
246-
fail_ci_if_error: true
247-
files: coverage.info
248-
name: Github Actions
249-
override_branch: ${{ steps.coverage_branch.outputs.override_branch }}
250-
token: ${{secrets.CODECOV_TOKEN}}
251-
verbose: true
228+
run: ci/codecov.sh "upload"
229+
env:
230+
CODECOV_TOKEN: ${{ secrets.CODECOV.TOKEN }}
252231

253232
- name: Run coverity
254233
if: matrix.coverity && github.event_name == 'push' && (github.ref_name == 'develop' || github.ref_name == 'master')

0 commit comments

Comments
 (0)