diff --git a/action.yml b/action.yml index 65b95ef..a50495f 100644 --- a/action.yml +++ b/action.yml @@ -290,7 +290,7 @@ runs: --log-level $([[ "${{ inputs.debug }}" == "true" ]] && echo "DEBUG" || echo "INFO") \ 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 "\" else .value.value end, "|"] | join(" ")) | if length > 0 then ["| name | value |", "|----|----|"] + . else ["No outputs"] end | join("\n")') + TERRAFORM_OUTPUTS=$(terraform output --json | jq -Mr 'to_entries | map(["|", .key, "|", if .value.sensitive then "\" else "\`.value.value\`" end, "|"] | join(" ")) | if length > 0 then ["| name | value |", "|----|----|"] + . else ["No outputs"] end | join("\n")') sed -i "s/%TERRAFORM_OUTPUTS%/${TERRAFORM_OUTPUTS//$'\n'/
}/g" ${{ github.workspace }}/atmos-apply-summary.md cat "${{ github.workspace }}/atmos-apply-summary.md" >> $GITHUB_STEP_SUMMARY