We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 500dc2b commit 4dcbd8dCopy full SHA for 4dcbd8d
kustdiff
@@ -34,6 +34,12 @@ function main {
34
set -e
35
output=$(printf "\`\`\` diff\n%s\n\`\`\`\n" "$diff")
36
escaped_output=${output//$'\n'/'%0A'}
37
+
38
+ # If escaped output is longer than 65000 characters return "output to large to print as a github comment"
39
+ if [ ${#escaped_output} -gt 65000 ]; then
40
+ escaped_output="Output is greater than 65000 characters, and therefore too large to print as a github comment."
41
+ fi
42
43
echo "::set-output name=diff::$escaped_output"
44
printf "\n\nOutput: %s\n" "$escaped_output"
45
}
0 commit comments