From 45ec4c8bd720e3dd4800ecc2639caf4317f5f3df Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Mon, 2 Sep 2019 19:03:35 +0200 Subject: [PATCH] fix codecov job --- .github/workflows/test.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3ea71ca0f21..4ceaf9ff539 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -63,7 +63,13 @@ jobs: task test-integration - name: Send unit tests coverage to Codecov - if: matrix.operating-system != 'windows-2019' + # Since secrets aren't available on forks, we only + # upload coverage on `push`. This might change if + # Codecov whitelists GitHub, lifting the need + # for a token. + if: > + matrix.operating-system != 'windows-2019' && + github.event_name == 'push' uses: codecov/codecov-action@v1.0.2 with: token: ${{secrets.CODECOV_TOKEN}}