diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e9094e..524dac1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,7 +107,7 @@ jobs: if-no-files-found: error - name: Upload web coverage to Codecov - if: ${{ env.CODECOV_TOKEN != '' }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && env.CODECOV_TOKEN != '' }} uses: codecov/codecov-action@v5 with: files: apps/web/coverage/lcov.codecov.info @@ -170,7 +170,7 @@ jobs: if-no-files-found: error - name: Upload API coverage to Codecov - if: ${{ env.CODECOV_TOKEN != '' }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && env.CODECOV_TOKEN != '' }} uses: codecov/codecov-action@v5 with: files: apps/api/coverage.codecov.out