Fixed Codecov uploader being run with the SHA of the merge commit instead of the HEAD commit when a job is run in a pull request context.
This commit is contained in:
parent
bc5ddb3495
commit
b510042b0d
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -135,7 +135,9 @@ jobs:
|
||||
retry_wait_seconds: 60
|
||||
warning_on_retry: false
|
||||
shell: bash
|
||||
command: ./${{ env.CODECOV_BINARY }} -n "${{ matrix.platform.name }} ${{ matrix.config.name }} ${{ matrix.type.name }}" -Z -f ./build/coverage.out -C ${{ github.sha }} -s ./build -e CODECOV_TOKEN,GITHUB_ACTION,GITHUB_RUN_ID,GITHUB_REF,GITHUB_REPOSITORY,GITHUB_SHA,GITHUB_HEAD_REF
|
||||
command: |
|
||||
if [[ "${{ github.event_name }}" == "pull_request" || "${{ github.event_name }}" == "pull_request_target" ]]; then COMMIT_OVERRIDE="-C ${{ github.event.pull_request.head.sha }}"; fi
|
||||
./${{ env.CODECOV_BINARY }} -n "${{ matrix.platform.name }} ${{ matrix.config.name }} ${{ matrix.type.name }}" -Z -f ./build/coverage.out $COMMIT_OVERRIDE -s ./build -e CODECOV_TOKEN,GITHUB_ACTION,GITHUB_RUN_ID,GITHUB_REF,GITHUB_REPOSITORY,GITHUB_SHA,GITHUB_HEAD_REF
|
||||
|
||||
- name: Test Install Interface
|
||||
if: matrix.platform.name != 'Android' && matrix.config.name != 'iOS'
|
||||
|
Loading…
Reference in New Issue
Block a user