From 0c4c00312ae700b90da714aea6b381ddc14e75cf Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Wed, 18 Dec 2024 09:58:12 -0500 Subject: [PATCH] test(coverage): only fail CI on main repo otherwise this will fail builds on forks since codecov requires upload tokens now people *can* set that up, but if they have not we should not fail the build --- .github/workflows/tests_emulator.yml | 2 +- .github/workflows/tests_unit.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests_emulator.yml b/.github/workflows/tests_emulator.yml index cb2a294b4d20..ba0949b3670e 100644 --- a/.github/workflows/tests_emulator.yml +++ b/.github/workflows/tests_emulator.yml @@ -197,4 +197,4 @@ jobs: - uses: codecov/codecov-action@v5 with: verbose: true - fail_ci_if_error: true # optional (default = false) + fail_ci_if_error: ${{ github.repository == 'ankidroid/Anki-Android' }} # optional (default = false) diff --git a/.github/workflows/tests_unit.yml b/.github/workflows/tests_unit.yml index b3c55edc8799..fe16cd20f50f 100644 --- a/.github/workflows/tests_unit.yml +++ b/.github/workflows/tests_unit.yml @@ -180,4 +180,4 @@ jobs: - uses: codecov/codecov-action@v5 with: verbose: true - fail_ci_if_error: true # optional (default = false) + fail_ci_if_error: ${{ github.repository == 'ankidroid/Anki-Android' }} # optional (default = false)