From 830ec2fe4c8aa9ba0852e788e4a38a343649ea8d Mon Sep 17 00:00:00 2001 From: Rd Date: Thu, 25 Jul 2024 17:08:53 +0530 Subject: [PATCH] Adding separate job to acquire the coverage report even after failure --- .github/workflows/code_coverage.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index 49801805780..67d0c976254 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -311,12 +311,16 @@ jobs: runs-on: ubuntu-latest if: true steps: - - name: Add comment - uses: peter-evans/create-or-update-comment@v4 - with: - issue-number: ${{ github.event.pull_request.number }} - body: | - Testing sample comment upload :tada:! + - name: Coverage Report + run: | + COVERAGE_REPORT=$(cat ./coverage_reports/CoverageReport.md) + echo "Coverage Report: $COVERAGE_REPORT" +# - name: Add comment +# uses: peter-evans/create-or-update-comment@v4 +# with: +# issue-number: ${{ github.event.pull_request.number }} +# body: | +# Testing sample comment upload :tada:! # Reference: https://github.community/t/127354/7. check_coverage_results: