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 26ea10c commit 548f507
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 @@ -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 "\<sensitive\>" 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 "\<sensitive\>" 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'/<br/>}/g" ${{ github.workspace }}/atmos-apply-summary.md
cat "${{ github.workspace }}/atmos-apply-summary.md" >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit 548f507

Please sign in to comment.