From 852f4e80cd43bf09b033b70cf74b7bfec7202fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20K=C3=B6tte?= Date: Sat, 13 Jan 2024 17:03:55 -0800 Subject: [PATCH] Update coverage-comment --- .github/workflows/coverage-comment.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage-comment.yml b/.github/workflows/coverage-comment.yml index 4348564..d0b27ed 100644 --- a/.github/workflows/coverage-comment.yml +++ b/.github/workflows/coverage-comment.yml @@ -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/github-script@v7.0.1 with: @@ -48,7 +50,7 @@ jobs: run: | echo -e "Minimum coverage required: $(cat ./.github/minimum_coverage.txt)\n
\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 "❌ Minimum coverage check failed!\n
\n$(cat comment.html)" > comment.html - name: Post code coverage report