summaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2024-05-19 14:05:30 +1000
committerJesse Duffield <jessedduffield@gmail.com>2024-05-19 14:05:30 +1000
commit36e7524146e5f2ec5f36846e9019c3918e309995 (patch)
tree1cd923b1cce75c6f4aaa506028e4249ca885cd0e /.github/workflows/ci.yml
parent189f39de2be6fadc225f3fc56420bab739397ec1 (diff)
Only run code coverage report on non-fork branches
Codacy's coverage report feature requires the use of a secret key, which is only available on the main repo and is not available on forks. So, the step has been always failing on any forks. This commit ensures that we only run it on non-forks. This greatly diminishes the value of the coverage reports. I've talked to one of the Codacy people and advised that they should just have an API key for coverage reports which is not a secret, like what bugsnag does.
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9f225ccfa..23599bbaf 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -188,6 +188,7 @@ jobs:
upload-coverage:
# List all jobs that produce coverage files
needs: [unit-tests, integration-tests]
+ if: github.event.repository.fork == false
runs-on: ubuntu-latest
steps:
- name: Checkout code