Skip to content

Commit 3f5c39d

Browse files
committed
feat: better output.
1 parent 95d837f commit 3f5c39d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

kustdiff

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,9 @@ function main {
8383
if [[ -z "$diff" ]]; then
8484
output="No differences found between $INPUT_BASE_REF and $INPUT_HEAD_REF"
8585
else
86-
output=$(printf "Differences between %s and %s:\n\`\`\`diff\n%s\n\`\`\`\n" "$INPUT_BASE_REF" "$INPUT_HEAD_REF" "$diff")
86+
output=$(printf "%s" "$diff")
8787
fi
8888

89-
set -e
90-
output=$(printf "\`\`\` diff\n%s\n\`\`\`\n" "$diff")
9189
escaped_output=${output//$'\n'/'%0A'}
9290

9391
# If escaped output is longer than 65000 characters return "output to large to print as a github comment"
@@ -96,7 +94,6 @@ function main {
9694
fi
9795

9896
echo "::set-output name=diff::$escaped_output"
99-
printf "\n\nOutput: %s\n" "$escaped_output"
10097
}
10198

10299
# Print initial configuration

0 commit comments

Comments
 (0)