mirror of
git://develop.git.wordpress.org/
synced 2025-04-21 20:51:55 +02:00
Build/Test Tools: Double escape quotation marks(“
) for Slack “messages”.
This prevents quotation marks from producing invalid JSON errors. See #52644. git-svn-id: https://develop.svn.wordpress.org/trunk@51709 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b7a495d337
commit
1c9ac8c6c1
2
.github/workflows/slack-notifications.yml
vendored
2
.github/workflows/slack-notifications.yml
vendored
@ -63,7 +63,7 @@ jobs:
|
||||
- name: Prepare commit message.
|
||||
id: commit-message
|
||||
run: |
|
||||
COMMIT_MESSAGE=$(cat <<'EOF' | awk 'NR==1' | sed 's/`/\\`/g' | sed 's/\"/\\"/g'
|
||||
COMMIT_MESSAGE=$(cat <<'EOF' | awk 'NR==1' | sed 's/`/\\`/g' | sed 's/\"/\\\\"/g'
|
||||
${{ github.event.workflow_run.head_commit.message }}
|
||||
EOF
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user