Skip to content

Commit 3d7be11

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ 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: >
29+
github.repository == 'TheAlgorithms/Java' &&
30+
"! github.event.pull_request.head.repo.fork "
2931
uses: codecov/codecov-action@v4
3032
with:
3133
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)