Skip to content

Commit

Permalink
[CI only] Skip codecov for forks until they resolve tokenless uploads… (
Browse files Browse the repository at this point in the history
#768)

* [CI only] Skip codecov for forks until they resolve tokenless uploads/reports

* Update .github/workflows/build-test.yml

Co-authored-by: mtmk <ziya@suzen.net>

---------

Co-authored-by: mtmk <ziya@suzen.net>
  • Loading branch information
levb and mtmk authored Jul 15, 2024
1 parent 1553d4a commit 048621b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ jobs:
fi
- name: Upload coverage reports to Codecov
if: inputs.coverage == 'ON'
# PRs from external contributors fail: https://github.com/codecov/feedback/issues/301
# Only upload coverage reports for PRs from the same repo (not forks)
if: inputs.coverage == 'ON' && github.event.pull_request.head.repo.full_name == github.repository
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
Expand Down

0 comments on commit 048621b

Please sign in to comment.