Only upload coverage if on main repo

This commit is contained in:
Gavin M. Roy 2020-04-06 18:31:29 -04:00
parent ad92604caa
commit a7f8ef35c8

View file

@ -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