mirror of
https://github.com/hadolint/hadolint-action.git
synced 2026-07-04 23:51:38 +00:00
chore: fix issue with multiline strings in output
Looking at [1] this should do some magic, so let's see. [1] https://github.community/t/set-output-truncates-multiline-strings/16852
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ if [ -n "$HADOLINT_OUTPUT" ]; then
|
||||
echo "$RESULTS" > $HADOLINT_OUTPUT
|
||||
fi
|
||||
|
||||
RESULTS="${RESULTS//\`/\\\`}"
|
||||
RESULTS="${RESULTS//$'\\n'/''}"
|
||||
echo "::set-output name=results::$RESULTS"
|
||||
|
||||
[ -z "$HADOLINT_OUTPUT" ] || echo "Hadolint output saved to: $HADOLINT_OUTPUT"
|
||||
|
||||
Reference in New Issue
Block a user