diff --git a/.github/workflows/build-and-test-linux.yml b/.github/workflows/build-and-test-linux.yml index cad89c1..596d582 100644 --- a/.github/workflows/build-and-test-linux.yml +++ b/.github/workflows/build-and-test-linux.yml @@ -50,14 +50,19 @@ jobs: name: coverage path: tarpaulin-report.json + - name: Generate summary + id: summary + run: echo "SUMMARY=$(python3 .github/workflows/report.py)" >> $GITHUB_OUTPUT" + - name: Notify coverage uses: actions/github-script@v7 + env: + SUMMARY: ${{ steps.summary.outputs.SUMMARY}} with: script: | - report=$(python3 .github/workflows/report.py) github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: '$report' + body: '${{ SUMMARY }}' }) \ No newline at end of file