Skip to content

Commit

Permalink
Update coverage-comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Nef10 authored Jan 14, 2024
1 parent 83e81d8 commit 852f4e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/coverage-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
name: 'Comment Code Coverage'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: 'Download artifacts'
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -48,7 +50,7 @@ jobs:
run: |
echo -e "Minimum coverage required: <b>$(cat ./.github/minimum_coverage.txt)</b>\n<br />\n$(cat comment.html)" > comment.html
- name: 'Prepand failure info'
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion != 'success' }}
run: |
echo -e "❌ <b>Minimum coverage check failed!</b>\n<br />\n$(cat comment.html)" > comment.html
- name: Post code coverage report
Expand Down

0 comments on commit 852f4e8

Please sign in to comment.