diff --git a/action.yml b/action.yml index 296fd43..9240b15 100644 --- a/action.yml +++ b/action.yml @@ -291,7 +291,7 @@ runs: apply -- terraform apply ${{ steps.vars.outputs.plan_file }} || EXIT_CODE=$? TERRAFORM_OUTPUTS=$(terraform output --json | \ - jq -Mr 'to_entries | map(["|", .key, "|", if .value.sensitive then "![Sensitive](https://img.shields.io/badge/sensitive-c40000?style=for-the-badge)" else "`" + .value.value + "`" end, "|"] | join(" ")) | if length > 0 then ["| name | value |", "|----|----|"] + . else ["No outputs"] end | join("\n")' \ + jq -Mr 'to_entries | map(["|", .key, "|", if .value.sensitive then "![Sensitive](https://img.shields.io/badge/sensitive-c40000?style=for-the-badge)" else "`" + .value.value + "`" end, "|"] | join(" ")) | if length > 0 then ["| name | value |", "|----|----|"] + . else ["No outputs"] end | join("\\n")' \ ) echo "${TERRAFORM_OUTPUTS}"