Skip to content

Commit

Permalink
t4
Browse files Browse the repository at this point in the history
  • Loading branch information
effoeffi committed Mar 11, 2024
1 parent 410b9e3 commit e32a01a
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions breaking/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#!/bin/sh
set -e

write_output () {
local output="$1"
if [ -n "$output_to_file" ]; then
local file_output="$2"
if [ -z "$file_output" ]; then
file_output=$output
fi
echo "$file_output" >> "$output_to_file"
fi
# github-action limits output to 1MB
# we count bytes because unicode has multibyte characters
size=$(echo "$output" | wc -c)
if [ "$size" -ge "1000000" ]; then
echo "WARN: diff exceeds the 1MB limit, truncating output..." >&2
output=$(echo "$output" | head -c 1000000)
fi
echo "$output" >>"$GITHUB_OUTPUT"
}
# write_output () {
# local output="$1"
# if [ -n "$output_to_file" ]; then
# local file_output="$2"
# if [ -z "$file_output" ]; then
# file_output=$output
# fi
# echo "$file_output" >> "$output_to_file"
# fi
# # github-action limits output to 1MB
# # we count bytes because unicode has multibyte characters
# size=$(echo "$output" | wc -c)
# if [ "$size" -ge "1000000" ]; then
# echo "WARN: diff exceeds the 1MB limit, truncating output..." >&2
# output=$(echo "$output" | head -c 1000000)
# fi
# echo "$output" >>"$GITHUB_OUTPUT"
# }

readonly base="$1"
readonly revision="$2"
Expand Down

0 comments on commit e32a01a

Please sign in to comment.