manual-approval
manual-approval copied to clipboard
Have some steps output as a comment
Add a new field named "comment" where the bot would add the output of a defined step as a comment. This would happen before replying with yes/no for approvals.
For example, A worflow does some tflinting and the approver wants to see tflint output and "terraform plan" output before allowing the workflow to proceed with the "terraform apply".
That's a really great idea, I'll add this to the backlog!
+1
Is it possible to render temporary file / step output to the issue body? My usecase is rendering Terraform plan in the issue body for review. Previously I can render it to a PR comment but not sure how to do this with this manual approval plugin
@alex-ld As a workaround I added another step to my job where I only run terraform show -no-color plan.out
(plan.out is from my previous plan step)
then I use this step's stdout
in the message body:
<details><summary>Show Plan</summary>
```terraform
${{ steps.show.outputs.stdout }}
```
</details>