Upload results to BuildPulse for non-PR pushes

This commit is contained in:
Jason Rudolph 2021-06-23 09:01:29 -04:00
parent 41803ebf93
commit ee17ab0ee9
No known key found for this signature in database
GPG Key ID: B760F197E561DF15

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 }}