diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 8858ea351..26f8a01e5 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -137,7 +137,7 @@ jobs: -o coverage/ --llvm fi - if [ "${{ needs.set-tags.outputs.coverage_report }}" == "true" ]; then + if [ "${{ (needs.set-tags.outputs.coverage_report == 'true') && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push') }}" == "true" ]; then echo "Generating coverage report" wget ${{ vars.S3_BUCKET_URL }}/tanssi-coverage/branches/master/covdir \ -O base_covdir || true