diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b237a6bc6db48..e88a4ff149f3f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -304,6 +304,7 @@ jobs: echo "filenames=${filenames%,}" >> "$GITHUB_OUTPUT" - uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1 + if: github.event_name == 'pull_request' || matrix.name != 'tests (online)' with: working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }} files: ${{ steps.junit_xml.outputs.filenames }} @@ -312,13 +313,15 @@ jobs: report_type: test_results - uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1 + if: github.event_name == 'pull_request' || matrix.name != 'tests (online)' with: working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }} files: Library/Homebrew/test/coverage/coverage.xml disable_search: true token: ${{ secrets.CODECOV_TOKEN }} - - uses: actions/upload-code-coverage@abb5995db9e0199b0e2bb9dbd136fce4cb1ec4d3 # v1 + - uses: actions/upload-code-coverage@abb5995db9e0199b0e2bb9dbd136fce4cb1ec4d3 # v1.3.0 + if: github.event_name == 'pull_request' || matrix.name != 'tests (online)' with: file: ${{ steps.set-up-homebrew.outputs.repository-path }}/Library/Homebrew/test/coverage/coverage.xml language: Ruby