diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 670cbd3..ef5ed3c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,14 +36,14 @@ jobs: run: make build - uses: jandelgado/gcov2lcov-action@v1.0.9 - if: ${{ github.ref != 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' }} with: infile: coverage.out outfile: coverage.lcov version: v1.0.6 - name: Report coverage to CodeClimate - if: ${{ github.ref != 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' }} uses: paambaati/codeclimate-action@v5.0.0 env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}