From 41924067d781de2e643717a7971233d9686beb7d Mon Sep 17 00:00:00 2001 From: Misha Sakhnov Date: Tue, 22 Oct 2024 12:50:23 +0300 Subject: [PATCH] ci: call go-coverage-report only if base is the main branch (#1118) The action has some hardcoded event type filter which doesn't let us using base profile from non main --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 916640e6d..98667f033 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -63,7 +63,7 @@ jobs: aws s3 cp cover.html "s3://${BUCKET}/${BUCKET_PATH}/${COMMIT_SHA}/index.html" - name: "Code coverage report" uses: fgrosse/go-coverage-report@v1.2.0 - if: ${{ !cancelled() && (steps.changed-files.outputs.any_changed == 'true' && github.event_name == 'pull_request')}} + if: ${{ !cancelled() && (steps.changed-files.outputs.any_changed == 'true' && github.event_name == 'pull_request' && github.event.base_ref == 'main') }} with: coverage-artifact-name: "code-coverage" coverage-file-name: "cover.out"