Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Fix output collapse #116

Merged
merged 1 commit into from
Dec 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/terraform_output.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ function terraformOutput {
echo "output: info: successfully gathered all the outputs for the Terraform configuration in ${tfWorkingDir}"
echo "${outputOutput}"
echo
echo ::set-output name=tf_actions_output::${outputOutput}

# https://git.luolix.topmunity/t5/GitHub-Actions/set-output-Truncates-Multiline-Strings/m-p/38372/highlight/true#M3322
outputOutput="${outputOutput//'%'/'%25'}"
outputOutput="${outputOutput//$'\n'/'%0A'}"
outputOutput="${outputOutput//$'\r'/'%0D'}"

echo "::set-output name=tf_actions_output::${outputOutput}"
exit ${outputExitCode}
fi

Expand Down