-
Notifications
You must be signed in to change notification settings - Fork 2.1k
No output in "Show Plan" #15
Comments
Hi @brettcurtis , thanks for going through the guide! Hrm... this is strange, did this trigger a speculative plan in Terraform Cloud? Could you try re-running the GH Action? If you go to the "Actions" tab in your repo and select the latest run, there should be a "Re-run jobs" button on the top right. |
I created what it think is a simple test here, let me know what you think: https://github.com/lzysh/test-plan-output/runs/1232224004?check_suite_focus=true I'm expecting line 39/40 would output something? Also troubleshooting over here in this issue: hashicorp/setup-terraform#7 |
Hey @brettcurtis , you just need to add this segment into your steps (preferably after you checkout the code).
Here's a successful action: im2nguyen/test-plan-output#4 |
Ok thanks, I used your example and it's working! |
Pinning this issue because others could be facing similar problems while setting up their own pipelines |
It is still now working for me. I mean under 'Show Plan', if I click on expand, no plan output shows up. Here is the snippet from my workflow yml
|
Hi @supratim-persistent, is your Terraform plan step error-ing? Can you try printing: I'm not familiar with the contents of your |
Hi @im2nguyen,
I also added a separate step like you said to display the output from this RUN PLAN ON MASTER step, but that is not showing any output either, does this snippet only work with terraform plan?
OUTPUT= |
Hi @supratim-persistent Thank you for your explanation, this makes a little bit more sense. The To export Because you're using the
|
Thank you for your inputs, it has made some improvements but showing the output is still not working completely. Now based on what you suggested, it is printing only the first line of the stdout output under 'Show Validations' and not all the lines upto the end. Here is my yml for your reference, will appreciate very much if you could suggest any workaround to print all the lines instead of just the first line. name: CI-ON-MASTER on: env: jobs: RUN-PLAN-ON-MASTER:
|
Can you try using the Terragrunt GitHub Actions instead? Otherwise, you would have to create a new GitHub action that uses an |
I had the same issue (also hashicorp/setup-terraform#7). If you use the I don't use
|
@ppawiggers Here is my snippet below, how do I incorporate your part as mentioned above in the below snippet, I tried a few ways but my workflow fails due to syntax error in the yaml if I try and incorporate your snippet, let me know if you are able to display the output of plan.log within the below snippet
|
Having same issue, Show plan is not showing any output. Can someone please help? |
It was great!! |
This is fixed when you add the below entry in your setup
|
Thanks for the guide! I'm trying to get the GitHub Script stuff to work but getting no outputs:
The text was updated successfully, but these errors were encountered: