We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8549015 commit f3aa25cCopy full SHA for f3aa25c
src/terraform_output.sh
@@ -11,7 +11,13 @@ function terraformOutput {
11
echo "output: info: successfully gathered all the outputs for the Terraform configuration in ${tfWorkingDir}"
12
echo "${outputOutput}"
13
echo
14
- echo ::set-output name=tf_actions_output::${outputOutput}
+
15
+ # https://github.community/t5/GitHub-Actions/set-output-Truncates-Multiline-Strings/m-p/38372/highlight/true#M3322
16
+ outputOutput="${outputOutput//'%'/'%25'}"
17
+ outputOutput="${outputOutput//$'\n'/'%0A'}"
18
+ outputOutput="${outputOutput//$'\r'/'%0D'}"
19
20
+ echo "::set-output name=tf_actions_output::${outputOutput}"
21
exit ${outputExitCode}
22
fi
23
0 commit comments