From 5c632d4fdcc6490cc3c37d00179a932e8edb2f4a Mon Sep 17 00:00:00 2001 From: Jerboa-app Date: Fri, 26 Apr 2024 15:20:07 +0100 Subject: [PATCH] fix --- .github/workflows/build-and-test-linux.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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