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 Nov 21, 2024
1 parent 04e5c9c commit 3a1ba96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/comment_coverage_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
});
for (let i = comments.length - 1; i >= 0; i--) {
if (comments[i].body.includes("Coverage Report")) {
if (comments[i].body.includes("## Coverage Report")) {
const latestCodeCoverageComment = comments[i].body;
require('fs').writeFileSync('latest_code_coverage_comment.md', latestCodeCoverageComment, 'utf8');
return
Expand Down Expand Up @@ -99,15 +99,15 @@ jobs:
sed -i -e '$a\' latest_code_coverage_comment.md
if diff -B CoverageReport.md latest_code_coverage_comment.md > /dev/null; then
echo "No significant changes detected; skipping coverage comment."
echo "No changes detected; skipping coverage comment."
echo "skip_coverage_comment=true" >> $GITHUB_ENV
else
echo "Changes detected; proceeding with the coverage comment."
diff CoverageReport.md latest_code_coverage_comment.md || true
echo "skip_coverage_comment=false" >> $GITHUB_ENV
fi
else
echo "No previous coverage comment found; posting coverage comment."
echo "No previous coverage comment found to compare; posting evaluated coverage comment."
echo "skip_coverage_comment=false" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit 3a1ba96

Please sign in to comment.