From 860c23cd90736dd37370ea0ba5d23aa2fded928e Mon Sep 17 00:00:00 2001 From: phm07 <22707808+phm07@users.noreply.github.com> Date: Thu, 25 Jul 2024 12:56:26 +0200 Subject: [PATCH] ci: don't upload coverage for renovate or release-please PRs (#788) Co-authored-by: jo --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e1ece76..497eb872 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,9 @@ jobs: run: go test -coverprofile=coverage.txt -v -race ./... - name: Upload coverage reports to Codecov + if: > + !startsWith(github.head_ref, 'renovate/') && + !startsWith(github.head_ref, 'release-please--') uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }}