diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 0e4138389..c5e97e383 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -59,7 +59,7 @@ jobs: - name: Test Report uses: dorny/test-reporter@v1 - if: success() || failure() # run this step even if previous step failed + if: ${{ (success() || failure()) && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} # run when check creation is permitted with: name: DotNet Tests # Name of the check run which will be created path: |