Skip to content

Commit

Permalink
fix: [~] get issue number (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizalo authored Oct 24, 2022
1 parent 55beb97 commit 3ab94f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
uses: peter-evans/create-or-update-comment@v2
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.workflow_run.pull_requests[0].number }}
issue-number: ${{ fromJson(steps.output_pr_context.outputs.pr_context).pr_number }}
token: "${{ secrets.GITHUB_TOKEN }}"
edit-mode: replace
# body: ${{ steps.template.outputs.result }}
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ github.event.workflow_run.pull_requests[0].number }}
issue-number: ${{ fromJson(steps.output_pr_context.outputs.pr_context).pr_number }}
body-includes: "This is an auto-generated comment"

- name: Add test results
Expand All @@ -192,7 +192,7 @@ jobs:
uses: peter-evans/create-or-update-comment@v2
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.workflow_run.pull_requests[0].number }}
issue-number: ${{ fromJson(steps.output_pr_context.outputs.pr_context).pr_number }}
token: "${{ secrets.GITHUB_TOKEN }}"
edit-mode: append
body: |
Expand Down

0 comments on commit 3ab94f9

Please sign in to comment.