Skip to content

Commit

Permalink
Added test-workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha committed Jan 24, 2024
1 parent 4906dbd commit 1fd80f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 1fd80f1

Please sign in to comment.