From a7f8ef35c8fd818a96a67b94edc0f5850cf884f6 Mon Sep 17 00:00:00 2001 From: "Gavin M. Roy" Date: Mon, 6 Apr 2020 18:31:29 -0400 Subject: [PATCH] Only upload coverage if on main repo --- .github/workflows/testing.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index 5d376d0..86407f4 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -61,6 +61,7 @@ jobs: - name: Upload Coverage uses: codecov/codecov-action@v1.0.2 + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'sprockets/sprockets-postgres' with: token: ${{secrets.CODECOV_TOKEN}} file: build/coverage.xml