Skip to content

Commit

Permalink
test(coverage): only fail CI on main repo
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mikehardy authored and david-allison committed Dec 18, 2024
1 parent d1e141d commit da4396a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests_emulator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion .github/workflows/tests_unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit da4396a

Please sign in to comment.