From c22ea0571ad02699f6b752a389e92a3500ef895c Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Tue, 18 Jun 2024 01:19:58 -0600 Subject: [PATCH] ci: only upload code coverage for latest stable build --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3c0aa3..84ea0b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,7 +108,7 @@ jobs: go test -v -race -coverprofile=coverage.out ./... - name: Upload coverage to Codecov - if: ${{ inputs.event-type == '' && github.ref_name == 'main' }} + if: ${{ inputs.event-type == '' && github.ref_name == 'main' && matrix.go-version == 'stable' }} uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }}