Skip to content

Commit 8f8f72d

Browse files
authored
[gha] fix comment ops p3 (#16733)
1 parent da1138e commit 8f8f72d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/comment-ops.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,15 @@ jobs:
7979
8080
return url[0];
8181
# Comment with a link to the job that got triggered
82-
- uses: actions/github-script@v6
82+
- name: Update comment with workflow run
83+
uses: actions/github-script@v6
8384
with:
8485
github-token: ${{ github.token }}
8586
script: |
8687
let commentBody = '${{ github.event.comment.body }}'
8788
commentBody += `\n\n#### Comment triggered a workflow run
8889
89-
Started workflow run: [${{ needs.configure.outputs.run_id }}](${{ needs.configure.outputs.run_url }})
90+
Started workflow run: [${{ fromJSON(steps.run_outputs.outputs.result).id }}](${{ fromJSON(steps.run_outputs.outputs.result).html_url }})
9091
* \`recreate_vm: ${{ steps.configure.outputs.recreate-vm }}\``
9192
github.rest.issues.updateComment({
9293
issue_number: ${{ github.event.issue.number }},

0 commit comments

Comments
 (0)