From 52fe9ffbd59955c30e1e91ab0ba0f04e72243d8d Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 27 Aug 2021 17:34:29 +0000 Subject: [PATCH] Build/Test Tools: Preserve `text within backticks` in Slack notifications. Props SergeyBiryukov, johnbillion, earnjam. See #52644. git-svn-id: https://develop.svn.wordpress.org/trunk@51679 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 5d4981b901..bc3caa63c6 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' + COMMIT_MESSAGE=$(cat <<'EOF' | awk 'NR==1' | sed 's/`/\\`/g' | sed 's/\"/\\"/g' ${{ github.event.workflow_run.head_commit.message }} EOF )