Skip to content

Commit

Permalink
Merge pull request #28 from gruntwork-io/output-collapse
Browse files Browse the repository at this point in the history
Add comment collapsing
  • Loading branch information
denis256 authored Oct 20, 2023
2 parents d881e0d + ddec7a5 commit 787fc13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,14 @@ function main {
terragrunt_output=$(clean_colors "${terragrunt_log_content}")

if [[ "${tg_comment}" == "1" ]]; then
comment "Execution result of \`$tg_command\` in \`${tg_dir}\` :
comment "<details>
<summary>Execution result of \"$tg_command\" in \"${tg_dir}\"</summary>
\`\`\`terraform
${terragrunt_output}
\`\`\`
</details>
"
fi

Expand Down

0 comments on commit 787fc13

Please sign in to comment.