Skip to content

Commit

Permalink
chore(coverage-diff): update combining markdown and comment format
Browse files Browse the repository at this point in the history
  • Loading branch information
Orkuncakilkaya committed Sep 2, 2024
1 parent ca3cc8c commit b9eb259
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/coverage-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,15 @@ jobs:
name: coverage-report-md
path: cov/markdown/

- name: Add coverage message to markdown
- name: Combine Coverage Message and Report
id: combine_message
run: |
echo "$COVERAGE_MESSAGE" | cat - cov/markdown/coverage_report.md > temp && mv temp cov/markdown/coverage_report.md
echo "${{ steps.compare_coverage.outputs.COVERAGE_MESSAGE }}" > coverage_message.txt
cat cov/markdown/coverage_report.md >> coverage_message.txt
combined_message=$(cat coverage_message.txt)
echo "combined_message=$combined_message" >> $GITHUB_ENV
- name: Add comment with coverage report
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31
with:
message: |
${{ steps.compare_coverage.outputs.COVERAGE_MESSAGE }}
$(cat cov/markdown/coverage_report.md)
message: ${{ env.combined_message }}

0 comments on commit b9eb259

Please sign in to comment.