Skip to content

Commit

Permalink
ci: call go-coverage-report only if base is the main branch (#1118)
Browse files Browse the repository at this point in the history
The action has some hardcoded event type filter which doesn't let us
using base profile from non main
  • Loading branch information
mikhail-sakhnov authored Oct 22, 2024
1 parent 1bf8ecc commit 4192406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
aws s3 cp cover.html "s3://${BUCKET}/${BUCKET_PATH}/${COMMIT_SHA}/index.html"
- name: "Code coverage report"
uses: fgrosse/[email protected]
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"
Expand Down

0 comments on commit 4192406

Please sign in to comment.