diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 85cee20cfab..d617e5ca1e3 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -362,6 +362,7 @@ jobs: with: mode: combine html-report: true + markdown-report: true - uses: actions/upload-artifact@v3 with: name: 'All tool test results' @@ -377,6 +378,24 @@ jobs: if [[ "${{ needs.setup.outputs.chunk-count }}" != "$NFILES" ]]; then exit 1 fi + - name: Get PR object + if: failure() + uses: 8BitJonny/gh-get-current-pr@2.2.0 + id: failed_pr_number + with: + sha: ${{ github.event.pull_request.head.sha }} + - name: Debug GetPR output + if: failure() + run: | + echo ${{ steps.failed_pr_number.outputs.number }} + - name: Post comment with test report + if: failure() + uses: peter-evans/create-or-update-comment@v3 + with: + token: ${{ secrets.PAT }} + issue-number: ${{ steps.failed_pr_number.outputs.number }} + body-path: upload/tool_test_output.md + # deploy the tools to the toolsheds (first TTS for testing) deploy: