From 8c27c512542c950ecd66d39f21afbd41e8e59c4c Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Fri, 19 May 2023 10:35:38 -0400 Subject: [PATCH] add report contents to comment --- .github/workflows/actions/generate-test-report/action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/actions/generate-test-report/action.yml b/.github/workflows/actions/generate-test-report/action.yml index a167259c0b..31cac5141f 100644 --- a/.github/workflows/actions/generate-test-report/action.yml +++ b/.github/workflows/actions/generate-test-report/action.yml @@ -23,7 +23,8 @@ runs: shell: bash working-directory: ./core/test-reporter - name: Generate Report - run: node dist/index.js ../../test-report-*/*.json + id: generate-report + run: echo "REPORT_CONTENTS=$(node dist/index.js ../../test-report-*/*.json)" >> $GITHUB_OUTPUT shell: bash working-directory: ./core/test-reporter - uses: actions/github-script@v6 @@ -33,5 +34,5 @@ runs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: 'This is a test' + body: ${{ needs.generate-report.outputs.REPORT_CONTENTS }} });