Skip to content

Commit

Permalink
Disable codecov if PR head and base are different or CODECOV_TOKEN no…
Browse files Browse the repository at this point in the history
…t set

Close #169
  • Loading branch information
AndreasLrx committed Oct 18, 2024
1 parent 2706640 commit f882572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
gcovr -r ${{github.workspace}} --exclude-unreachable-branches --exclude-throw-branches --xml --output ./coverage.xml -e "src/ecstasy/integrations/sfml/*" ${{github.workspace}}/build/src
- name: Upload Coverage Data
if: matrix.GCOV
if: matrix.GCOV && (secrets.CODECOV_TOKEN != '') && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name)
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit f882572

Please sign in to comment.