Fix disable test results uploads properly (#139827)

* Fix disable test results uploads properly

* use dedicated variable

* fix pushes
This commit is contained in:
Robert Resch 2025-03-05 13:52:29 +01:00 committed by GitHub
parent 1c1a950c05
commit f0bba1d6d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1452,7 +1452,7 @@ jobs:
name: Upload test results to Codecov
# codecov/test-results-action currently doesn't support tokenless uploads
# therefore we can't run it on forks
if: github.repository_owner == 'home-assistant' && needs.info.outputs.skip_coverage != 'true' && !cancelled()
if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork) && needs.info.outputs.skip_coverage != 'true' && !cancelled() }}
runs-on: ubuntu-24.04
needs:
- info