From de387a4bd185e9b5057d1649daea9e5f143b08d2 Mon Sep 17 00:00:00 2001 From: RD Rama Devi <122200035+Rd4dev@users.noreply.github.com> Date: Wed, 16 Oct 2024 02:55:23 +0530 Subject: [PATCH] Update comment_coverage_report.yml --- .github/workflows/comment_coverage_report.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/comment_coverage_report.yml b/.github/workflows/comment_coverage_report.yml index c9f723671..dc672785b 100644 --- a/.github/workflows/comment_coverage_report.yml +++ b/.github/workflows/comment_coverage_report.yml @@ -85,11 +85,8 @@ jobs: run-id: ${{ steps.find-workflow-run.outputs.run-id }} - name: Compare coverage report with the comment body (workkkkk!!) - run: | - sed -i -e '$a\' CoverageReport.md - sed -i -e '$a\' comment.md - - if diff CoverageReport.md comment.md > /dev/null; then + run: | + if diff --strip-trailing-cr CoverageReport.md comment.md > /dev/null; then echo "No significant changes detected; skipping coverage comment." echo "skip_coverage_comment=true" >> $GITHUB_ENV else