Skip to content

Commit

Permalink
action: fix upload-coverage-to-codecov with secret
Browse files Browse the repository at this point in the history
Signed-off-by: Yadong Ding <ding_yadong@foxmail.com>
  • Loading branch information
Desiki-high authored and imeoer committed Jul 15, 2024
1 parent c92fe65 commit 32b6ead
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,7 @@ jobs:
with:
name: contrib-test-coverage-artifact
- name: Upload coverage to Codecov
if: ${{ github.event_name == 'pull_request' }}
uses: codecov/codecov-action@v4.0.0
with:
files: ./codecov.json,./coverage.txt
verbose: true
fail_ci_if_error: true
- name: Upload coverage to Codecov
if: ${{ (github.event_name == 'push'|| github.event_name == 'schedule') }}
uses: codecov/codecov-action@v4.0.0
uses: codecov/codecov-action@v4
with:
files: ./codecov.json,./coverage.txt
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 32b6ead

Please sign in to comment.