Skip to content

Commit 4089069

Browse files
committed
Only upload code coverage if the token is present in CI.
Signed-off-by: Alex Skrypnyk <[email protected]>
1 parent 9601553 commit 4089069

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ jobs:
5353

5454
- run:
5555
name: Upload code coverage reports to Codecov
56-
command: if [ -d /tmp/artifacts/coverage ]; then codecov -Z -s /tmp/artifacts/coverage; fi
56+
command: |
57+
if [ -n "${CODECOV_TOKEN}" ] && [ -d /tmp/artifacts/coverage ] && ! echo "${CIRCLE_BRANCH}" | grep -q '^deps/'; then
58+
codecov -Z -s /tmp/artifacts/coverage;
59+
fi
60+
5761
5862
workflows:
5963
version: 2

0 commit comments

Comments
 (0)