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

Commit

Permalink
Fix output collapse (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
miyajan authored and sudomateo committed Dec 30, 2019
1 parent 8549015 commit f3aa25c
Showing 1 changed file with 7 additions and 1 deletion.
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

0 comments on commit f3aa25c

Please sign in to comment.