From c896dabb82eb7206fd69d5871b1c18c04054acda Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Wed, 17 Apr 2024 18:50:23 -0400 Subject: [PATCH] ci: skip coverage upload if not in LizardByte org (#2436) --- .github/workflows/CI.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b442fd74..3ffef6a6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -507,7 +507,10 @@ jobs: - name: Upload coverage # any except canceled or skipped - if: always() && (steps.test_report.outcome == 'success') + if: >- + always() && + (steps.test_report.outcome == 'success') && + startsWith(github.repository, 'LizardByte/') uses: codecov/codecov-action@v4 with: fail_ci_if_error: true @@ -832,7 +835,10 @@ jobs: - name: Upload coverage # any except canceled or skipped - if: always() && (steps.test_report.outcome == 'success') + if: >- + always() && + (steps.test_report.outcome == 'success') && + startsWith(github.repository, 'LizardByte/') uses: codecov/codecov-action@v4 with: fail_ci_if_error: false # todo: re-enable this when action is fixed @@ -1070,7 +1076,10 @@ jobs: - name: Upload coverage # any except canceled or skipped - if: always() && (steps.test_report.outcome == 'success') + if: >- + always() && + (steps.test_report.outcome == 'success') && + startsWith(github.repository, 'LizardByte/') uses: codecov/codecov-action@v4 with: fail_ci_if_error: true