Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/on-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
name: Code Coverage Report
runs-on: ubuntu-latest
needs: [ validate-and-test, check-build-and-test-required ]
if: github.event_name != 'merge_group' && needs.check-build-and-test-required.outputs.code == 'true'
if: github.event_name != 'merge_group' && needs.check-build-and-test-required.outputs.code == 'true' && github.base_ref == 'main'
steps:
- uses: fgrosse/go-coverage-report@8c1d1a09864211d258937b1b1a5b849f7e4f2682
id: coverage_reporter
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/post-coverage-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,25 @@ jobs:

steps:
- name: Download PR number artifact
id: download_pr_number
continue-on-error: true
uses: actions/download-artifact@v7
with:
name: pr-number-for-comment
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Download coverage report artifact
id: download_coverage_report
continue-on-error: true
uses: actions/download-artifact@v7
with:
name: coverage-report-for-comment
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Post comment
if: steps.download_pr_number.outcome == 'success' && steps.download_coverage_report.outcome == 'success'
uses: actions/github-script@v8
with:
script: |
Expand Down
Loading