Skip to content

Commit

Permalink
fix(helmfile-actions): Truncate actual errors (#64)
Browse files Browse the repository at this point in the history
We're seeing weird behavior on [this](https://github.com/iStreamPlanet/kubernetes_management/pull/4168) PR where the the comment output and the message output don't match.
  • Loading branch information
Aaron Batilo authored Nov 30, 2020
1 parent 412e2e7 commit 36439e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helmfile-actions/diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ function helmfileDiff {
echo "Error: Failed to run helmfile diff"
echo "${output}"
echo

# If output is longer than max length (65536 characters), keep last part
output=$(echo "${output}" | tail -c 65000 )
fi

if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && ([ "${hasChanges}" == "true" ] || [ "${commentStatus}" == "Failed" ]); then
Expand Down

0 comments on commit 36439e1

Please sign in to comment.