Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
Signed-off-by: Yellow Shine <[email protected]>
  • Loading branch information
yellow-shine committed Oct 24, 2024
1 parent 5c6cd01 commit 0705c6e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,19 @@ jobs:
run: |
ls -lah
- name: Upload coverage reports to Codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ github.repository == 'milvus-io/milvus' }}
run: |
curl -Os https://cli.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --pr ${{ github.event.pull_request.number }} -n 'github-actions' -f './go_coverage.txt' -f './it_coverage.txt'
./codecov --verbose upload-process --fail-on-error --pr ${{ github.event.pull_request.number }} -n 'github-actions' -f './go_coverage.txt' -f './it_coverage.txt'
- name: Retry Upload coverage to Codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ failure() && github.repository == 'milvus-io/milvus' }}
run: |
./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --pr ${{ github.event.pull_request.number }} -n 'github-actions' -f './go_coverage.txt' -f './it_coverage.txt'
./codecov --verbose upload-process --fail-on-error --pr ${{ github.event.pull_request.number }} -n 'github-actions' -f './go_coverage.txt' -f './it_coverage.txt'

0 comments on commit 0705c6e

Please sign in to comment.