add report contents to comment

This commit is contained in:
Liam DeBeasi
2023-05-19 10:35:38 -04:00
parent 800c869292
commit 8c27c51254

View File

@ -23,7 +23,8 @@ runs:
shell: bash shell: bash
working-directory: ./core/test-reporter working-directory: ./core/test-reporter
- name: Generate Report - 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 shell: bash
working-directory: ./core/test-reporter working-directory: ./core/test-reporter
- uses: actions/github-script@v6 - uses: actions/github-script@v6
@ -33,5 +34,5 @@ runs:
issue_number: context.issue.number, issue_number: context.issue.number,
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
body: 'This is a test' body: ${{ needs.generate-report.outputs.REPORT_CONTENTS }}
}); });