From ee17ab0ee92cdee836d1d767800673b9c8d04501 Mon Sep 17 00:00:00 2001 From: Jason Rudolph Date: Wed, 23 Jun 2021 09:01:29 -0400 Subject: [PATCH] Upload results to BuildPulse for non-PR pushes --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 464124a2b7..2ec50a9860 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }}