Skip to content

Commit

Permalink
ci: only upload coverage from the default branch (after merges)
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Donato <[email protected]>
  • Loading branch information
leodido committed Feb 27, 2023
1 parent b8a87fa commit e3ef3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:

- name: Upload coverage
uses: codecov/codecov-action@v3
if: ${{ matrix.go == '1.19' }}
if: github.ref == 'refs/heads/master'
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
Expand Down

0 comments on commit e3ef3a8

Please sign in to comment.