Skip to content

Commit

Permalink
Use gh-get-current-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Nov 21, 2023
1 parent 7fbbd2a commit 54d83ce
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/workflow_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,22 @@ jobs:
id: check
with:
mode: check
- name: Get PR object
- uses: jwalton/gh-find-current-pr@v1
if: failure()
uses: 8BitJonny/[email protected]
id: failed_pr_number
id: findPr
with:
sha: ${{ github.event.pull_request.head.sha }}
- name: Debug GetPR output
# Can be "open", "closed", or "all". Defaults to "open".
state: all
- run: echo "Your PR is ${PR}"
if: failure()
run: |
echo ${{ steps.failed_pr_number.outputs.number }}
env:
PR: ${{ steps.findPr.outputs.pr }}
- 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 }}
issue-number: ${{ steps.findPr.outputs.number }}
body-path: upload/tool_test_output.md

# deploy workflows to organization
Expand Down

0 comments on commit 54d83ce

Please sign in to comment.