Merge pull request #11586 from jasonrudolph/detect-flaky-tests-on-pushes-to-default-branch

Upload test results to BuildPulse for non-PR pushes
This commit is contained in:
Mike McQuaid 2021-06-23 17:35:46 +01:00 committed by GitHub
commit b0d43c7e25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -322,9 +322,9 @@ jobs:
- uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192
- name: Upload test results to BuildPulse for flaky test detection
# Only run this step for PRs where where we have access to secrets.
# Only run this step for non-PR pushes or PRs where where we have access to secrets.
# Run this step even when the tests fail. Skip if the workflow is cancelled.
if: github.event.pull_request.head.repo.full_name == github.repository && !cancelled()
if: (github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository) && !cancelled()
env:
BUILDPULSE_ACCESS_KEY_ID: ${{ secrets.BUILDPULSE_ACCESS_KEY_ID }}
BUILDPULSE_SECRET_ACCESS_KEY: ${{ secrets.BUILDPULSE_SECRET_ACCESS_KEY }}