Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show output on terraform plan failure #134

Open
lundbird opened this issue Oct 31, 2021 · 0 comments
Open

Show output on terraform plan failure #134

lundbird opened this issue Oct 31, 2021 · 0 comments

Comments

@lundbird
Copy link

lundbird commented Oct 31, 2021

When I run the workflow using terraform v1.0.7 and have a failed plan, no output will be shown in the commit message. I have solved this by adding the steps.plan.outputs.stderr to the PLAN env variable to get this to print out. Perhaps I am doing something incorrectly that I need to do this workaround? Any reason this shouldn't be included in the working example?

Before:

  env:
    PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"

After:

  env:
    PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"\n${{ steps.plan.outputs.stderr }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant