From 1fd80f15ff1d6ee3929e066a3e2cb896a0e45836 Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Thu, 25 Jan 2024 00:56:48 +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 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}"