Skip to content

Commit 4192406

Browse files
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
1 parent 1bf8ecc commit 4192406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
aws s3 cp cover.html "s3://${BUCKET}/${BUCKET_PATH}/${COMMIT_SHA}/index.html"
6464
- name: "Code coverage report"
6565
uses: fgrosse/[email protected]
66-
if: ${{ !cancelled() && (steps.changed-files.outputs.any_changed == 'true' && github.event_name == 'pull_request')}}
66+
if: ${{ !cancelled() && (steps.changed-files.outputs.any_changed == 'true' && github.event_name == 'pull_request' && github.event.base_ref == 'main') }}
6767
with:
6868
coverage-artifact-name: "code-coverage"
6969
coverage-file-name: "cover.out"

0 commit comments

Comments
 (0)