ci(aio): correctly serialize commit messages with "double-quotes" (#19183)
PR Close #19183
This commit is contained in:
parent
79c7fe05c6
commit
23f2bea353
|
@ -43,7 +43,7 @@ addMessage() {
|
||||||
# because $TRAVIS_COMMIT_RANGE will contain the previous SHA which will not be in the
|
# because $TRAVIS_COMMIT_RANGE will contain the previous SHA which will not be in the
|
||||||
# force push or commit, hence we default to last commit.
|
# force push or commit, hence we default to last commit.
|
||||||
message=$(git log --oneline $TRAVIS_COMMIT_RANGE -- || git log --oneline -n1)
|
message=$(git log --oneline $TRAVIS_COMMIT_RANGE -- || git log --oneline -n1)
|
||||||
message=$(echo $message | sed 's/"/\\"/g' | sed 's/\\/\\\\/g')
|
message=$(echo $message | sed 's/\\/\\\\/g' | sed 's/"/\\"/g')
|
||||||
payloadData="$payloadData\"message\": \"$message\""
|
payloadData="$payloadData\"message\": \"$message\""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue