diff options
| author | gy95 <1015105054@qq.com> | 2022-12-13 09:59:05 +0800 |
|---|---|---|
| committer | gy95 <1015105054@qq.com> | 2022-12-13 09:59:05 +0800 |
| commit | eeb3c39725c4dfd6e3cc4296e279ccab6e52ec5f (patch) | |
| tree | c15b67dd72ca49432e49047a325b4d2bd866c350 /.github | |
| parent | Merge pull request #4491 from wackxu/rmfunction (diff) | |
| download | kubeedge-eeb3c39725c4dfd6e3cc4296e279ccab6e52ec5f.tar.gz | |
increase codecov successful uploads
Signed-off-by: gy95 <1015105054@qq.com>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/main.yaml | 7 |
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 |
