From fdd069ef2bbdfff2c315fa26434d6e9fcaaca50f Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Thu, 25 Jan 2024 00:22:36 +0100 Subject: [PATCH] Added test-workflows --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 2ca4f43..d92c154 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") | @sh' \ + jq -M '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") | @sh' \ ) echo "${TERRAFORM_OUTPUTS}"