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

Terraform plan colors #157

Closed
JafoFett opened this issue Mar 24, 2023 · 1 comment
Closed

Terraform plan colors #157

JafoFett opened this issue Mar 24, 2023 · 1 comment

Comments

@JafoFett
Copy link

Would it be possible to output the proper 'create' 'destroy' colors in the body? I've tried using the below:
body: |
Terraform Plan:

      ```hcl
      ${{ steps.plan.outputs.plan }}
      ```

And it's ok, but it doesn't show proper colors for create and destroy, create shows as red.
image
I know your action isn't specific to terraform, but thought maybe someone might be able to help.
Thanks

@peter-evans
Copy link
Owner

Hi @JafoFett

I'm not sure, but isn't this just how GitHub is rendering hcl in code blocks? I don't think there is anything I can do about that.

Anyway, I don't think the output of Terraform plans is considered valid HCL. Perhaps use another render type like diff or no type at all.

Using diff might work. e.g.

+ create
- destroy

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

2 participants