From aead8cfe7de8576c75324f59b40d00a453bb7f37 Mon Sep 17 00:00:00 2001 From: joseph-sentry Date: Fri, 2 Feb 2024 19:09:07 -0500 Subject: [PATCH] build: upload to codecov even on failure --- .github/workflows/run-tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ba49f3f..cfa5c27 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -55,18 +55,18 @@ jobs: make test_env.run_integration ## Don't upload on forks for now. - name: upload using codecovcli - if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} + if: ${{ !cancelled() && !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} run: | make test_env.upload CODECOV_UPLOAD_TOKEN=${{ secrets.CODECOV_ORG_TOKEN }} CODECOV_URL=${{ secrets.CODECOV_URL }} - name: upload using codecovcli staging - if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} + if: ${{ !cancelled() && !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} run: | make test_env.upload CODECOV_UPLOAD_TOKEN=${{ secrets.CODECOV_ORG_TOKEN_STAGING }} CODECOV_URL=${{ secrets.CODECOV_STAGING_URL }} - name: upload using codecovcli qa - if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} + if: ${{ !cancelled() && !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} run: | make test_env.upload CODECOV_UPLOAD_TOKEN=${{ secrets.CODECOV_QA_TOKEN }} CODECOV_URL=${{ secrets.CODECOV_QA_URL }} - name: upload using codecovcli public qa - if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} + if: ${{ !cancelled() && !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} run: | make test_env.upload CODECOV_UPLOAD_TOKEN=${{ secrets.CODECOV_PUBLIC_QA_TOKEN }} CODECOV_URL=${{ secrets.CODECOV_PUBLIC_QA_URL }} \ No newline at end of file