Only send to BuildPulse when we have access to secrets

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Jason Rudolph 2021-06-22 10:31:25 -04:00 committed by GitHub
parent 006299dcc1
commit 0eec1d5e57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -322,7 +322,9 @@ jobs:
- uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192 - uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192
- name: Upload test results to BuildPulse for flaky test detection - name: Upload test results to BuildPulse for flaky test detection
if: '!cancelled()' # Run this step even when the tests fail. Skip if the workflow is cancelled. # Only run this step for 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()
env: env:
BUILDPULSE_ACCESS_KEY_ID: ${{ secrets.BUILDPULSE_ACCESS_KEY_ID }} BUILDPULSE_ACCESS_KEY_ID: ${{ secrets.BUILDPULSE_ACCESS_KEY_ID }}
BUILDPULSE_SECRET_ACCESS_KEY: ${{ secrets.BUILDPULSE_SECRET_ACCESS_KEY }} BUILDPULSE_SECRET_ACCESS_KEY: ${{ secrets.BUILDPULSE_SECRET_ACCESS_KEY }}