|
23 | 23 | branch: ${{ steps.comment-branch.outputs.head_ref }} |
24 | 24 | run_url: ${{ fromJSON(steps.run_outputs.outputs.result).html_url }} |
25 | 25 | run_id: ${{ fromJSON(steps.run_outputs.outputs.result).id }} |
26 | | - recreate_vm: ${{ steps.configure.outputs.recreate-vm }} |
| 26 | + recreate_vm: ${{ steps.configure.outputs.recreate_vm }} |
27 | 27 | steps: |
28 | 28 | # In order for us to find out from which PR the comment originates, we use the `xt0rted/pull-request-comment-branch@v1` action |
29 | 29 | - uses: xt0rted/pull-request-comment-branch@v1 |
|
33 | 33 | id: outputs |
34 | 34 | run: | |
35 | 35 | { |
36 | | - echo "recreate-vm=${{ contains(github.event.comment.body, 'recreate-vm') }}" |
| 36 | + echo "recreate_vm=${{ contains(github.event.comment.body, 'recreate-vm') }}" |
37 | 37 | } >> $GITHUB_OUTPUT |
38 | 38 | # Trigger the build workflow with the input we got from the comment |
39 | 39 | # In the triggered job (build), we'll combine the information from the PR description, with the input we pass here |
|
49 | 49 | workflow_id: 'build.yml', |
50 | 50 | ref: '${{ steps.comment-branch.outputs.head_ref }}', |
51 | 51 | inputs: { |
52 | | - "recreate_vm": '${{ steps.configure.outputs.recreate-vm }}' |
| 52 | + "recreate_vm": '${{ steps.outputs.outputs.recreate_vm }}' |
53 | 53 | } |
54 | 54 | }) |
55 | 55 | # Getting the ID of the workflow we triggered above is a bit tricky, as it's async :( |
|
88 | 88 | commentBody += `\n\n#### Comment triggered a workflow run |
89 | 89 |
|
90 | 90 | Started workflow run: [${{ fromJSON(steps.run_outputs.outputs.result).id }}](${{ fromJSON(steps.run_outputs.outputs.result).html_url }}) |
91 | | - * \`recreate_vm: ${{ steps.configure.outputs.recreate-vm }}\`` |
| 91 | + * \`recreate_vm: ${{ steps.outputs.outputs.recreate_vm }}\`` |
92 | 92 | github.rest.issues.updateComment({ |
93 | 93 | issue_number: ${{ github.event.issue.number }}, |
94 | 94 | owner: context.repo.owner, |
|
0 commit comments