Skip to content

Commit

Permalink
Change action to send coverage main branch only
Browse files Browse the repository at this point in the history
Signed-off-by: Taeik Lim <[email protected]>
  • Loading branch information
acktsap committed Nov 1, 2023
1 parent 9cfd63c commit 30d487a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/0.x.x_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,3 @@ jobs:
- name: Merge coverage reports
run: ./gradlew koverMergedReport

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: ${{ matrix.java-version == '8' }}
with:
files: build/kover/result.xml
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ jobs:

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: ${{ matrix.java-version == '17' }}
if: ${{ matrix.java-version == '17' && github.ref == 'refs/heads/main' }}
with:
files: ./build/kover/result.xml

0 comments on commit 30d487a

Please sign in to comment.