From 1d13bc73d01d38ddc66cccd5780d916db9b4e589 Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Thu, 25 Jul 2024 23:45:19 -0500 Subject: [PATCH] Only upload coverage from ubuntu (not collected on others) --- .github/workflows/c.yml | 1 + .github/workflows/cplusplus.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/c.yml b/.github/workflows/c.yml index 3d924218..035325c4 100644 --- a/.github/workflows/c.yml +++ b/.github/workflows/c.yml @@ -91,6 +91,7 @@ jobs: - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.0.1 + if: ${{ contains(matrix.os, 'ubuntu') }} with: token: ${{ secrets.CODECOV_TOKEN }} flags: C diff --git a/.github/workflows/cplusplus.yml b/.github/workflows/cplusplus.yml index 278dfcfb..dc461c49 100644 --- a/.github/workflows/cplusplus.yml +++ b/.github/workflows/cplusplus.yml @@ -84,6 +84,7 @@ jobs: - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.0.1 + if: ${{ contains(matrix.os, 'ubuntu') }} with: token: ${{ secrets.CODECOV_TOKEN }} flags: Cpp