diff --git a/.github/workflows/workflow_test.yml b/.github/workflows/workflow_test.yml index c3bf66fcc..7b0c2f32a 100644 --- a/.github/workflows/workflow_test.yml +++ b/.github/workflows/workflow_test.yml @@ -101,13 +101,18 @@ jobs: - name: Get PR object if: failure() uses: 8BitJonny/gh-get-current-pr@2.2.0 - id: getpr + id: failed_pr_number + with: + sha: ${{ github.event.pull_request.head.sha }} + - name: Debug GetPR output + 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.getpr.outputs.number }} + issue-number: ${{ steps.failed_pr_number.outputs.number }} body-path: upload/tool_test_output.md # deploy workflows to organization