hashicorp / hashicorp/setup-terraform

Show output on terraform plan failure

Open
#134 0 comments 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.6k
Forks
288
Avg merge
23h 21m
Merged PRs (30d)
3

Description

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 }}"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.