Created
April 26, 2022 16:50
-
-
Save slawekzachcial/c77d5ada910f3983de6703da073f9d95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform plan -no-color 2>&1 \ | |
| sed -E -e 's/^([[:space:]]+)([-+#])/\2\1/g' -e 's/^([[:space:]]+)~/!\1/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The output of above command, wrapped in code block with "diff" syntax in a GitHub PR or comment creates the output similar to the below:
Source: https://blog.testdouble.com/posts/2021-12-07-elevate-your-terraform-workflow-with-github-actions/#re-introduce-colors