summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorgy95 <1015105054@qq.com>2022-12-13 09:59:05 +0800
committergy95 <1015105054@qq.com>2022-12-13 09:59:05 +0800
commiteeb3c39725c4dfd6e3cc4296e279ccab6e52ec5f (patch)
treec15b67dd72ca49432e49047a325b4d2bd866c350 /.github
parentMerge pull request #4491 from wackxu/rmfunction (diff)
downloadkubeedge-eeb3c39725c4dfd6e3cc4296e279ccab6e52ec5f.tar.gz
increase codecov successful uploads
Signed-off-by: gy95 <1015105054@qq.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index d12db57d1..2bd5eb5b3 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -139,8 +139,15 @@ jobs:
- run: make test PROFILE=y
- name: Upload coverage to Codecov
+ # Prevent running from the forked repository that doesn't need to upload coverage.
+ # In addition, running on the forked repository would fail as missing the necessary secret.
+ if: ${{ github.repository == 'kubeedge/kubeedge' }}
uses: codecov/codecov-action@v3
with:
+ # Even though token upload token is not required for public repos,
+ # but adding a token might increase successful uploads as per:
+ # https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
+ token: ${{secrets.CODECOV_UPLOAD_TOKEN}}
files: ./coverage.out
flags: unittests
fail_ci_if_error: true