Skip to content

Commit 2e5c704

Browse files
committed
fix(autorelease): fix slack is unable to send some logs
1 parent 103d8d8 commit 2e5c704

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

live-demo/deploy/buildSlackNotify.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ if [ "$CI_STEP_STATUS" = "success" ]; then
2323
fi
2424
export BUILD_LOG=$(cat ../../adminforth/build.log)
2525

26+
BUILD_LOG=$(echo $BUILD_LOG | sed 's/"/\\"/g')
2627

2728
MESSAGE="Broke \`$CI_REPO_NAME/$CI_COMMIT_BRANCH\` with commit _${CI_COMMIT_MESSAGE}_ (<$CI_COMMIT_URL|$COMMIT_SHORT_SHA>)"
2829
CODE_BLOCK="\`\`\`$BUILD_LOG\n\`\`\`"

0 commit comments

Comments
 (0)