Skip to content

Commit df310e8

Browse files
committed
fix: upload with token only for main repository
1 parent 0d9ef27 commit df310e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
files: "${{ env.COVERAGE_REPORT_PATH }}"
2626
fail_ci_if_error: true
2727
- name: Upload coverage to codecov (with token)
28-
if: "! github.event.pull_request.head.repo.fork "
28+
if: github.repository == 'TheAlgorithms/Java'
2929
uses: codecov/codecov-action@v4
3030
with:
3131
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)