Skip to content

Commit

Permalink
Update comment_coverage_report.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Rd4dev authored Oct 15, 2024
1 parent 7ac8671 commit 8933ca3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/comment_coverage_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,27 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ steps.find-workflow-run.outputs.run-id }}

- name: Uhm. lets see if this works
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body-path: 'CoverageReport.md'

- name: Save the comment body to file
run: |
echo "${{ steps.fc-cr.outputs.comment-body }}" > comment.md
- name: Compare coverage report with the comment body (workkkkk!!)
run: |
if diff CoverageReport.md comment.md > /dev/null; then
echo "No significant changes detected; skipping comment."
echo "skip_comment=true" >> $GITHUB_ENV
else
echo "Changes detected; proceeding with the comment."
echo "skip_comment=false" >> $GITHUB_ENV
fi
- name: Upload Coverage Report as PR Comment
uses: peter-evans/create-or-update-comment@v4
with:
Expand Down

0 comments on commit 8933ca3

Please sign in to comment.