From 1c9ac8c6c1051f9db8acfa0b77d270d5779cead5 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Wed, 1 Sep 2021 00:25:10 +0000 Subject: [PATCH] =?UTF-8?q?Build/Test=20Tools:=20Double=20escape=20quotati?= =?UTF-8?q?on=20marks(`=E2=80=9C`)=20for=20Slack=20=E2=80=9Cmessages?= =?UTF-8?q?=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/slack-notifications.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/slack-notifications.yml b/.github/workflows/slack-notifications.yml index bc3caa63c6..2be16eb6ef 100644 --- a/.github/workflows/slack-notifications.yml +++ b/.github/workflows/slack-notifications.yml @@ -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 )