mirror of
https://github.com/hadolint/hadolint-action.git
synced 2025-01-31 03:41:08 +01: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:
parent
5fc1b0e2fb
commit
1dd44fc493
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue