Skip to content

Commit

Permalink
Post back report when test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Nov 7, 2023
1 parent b099a81 commit 95231af
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/workflow_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,19 @@ jobs:
id: check
with:
mode: check
- name: Get PR object
if: failure()
uses: 8BitJonny/[email protected]
id: getpr
with:
sha: ${{ github.event.after }}
- 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 }}
body-path: upload/tool_test_output.md

# deploy workflows to organization
deploy:
Expand Down Expand Up @@ -155,7 +168,7 @@ jobs:
with:
sha: ${{ github.event.after }}
- name: Create comment
uses: peter-evans/create-or-update-comment@v2
uses: peter-evans/create-or-update-comment@v3
with:
token: ${{ secrets.PAT }}
issue-number: ${{ steps.getpr.outputs.number }}
Expand Down

0 comments on commit 95231af

Please sign in to comment.