Make WordPress Core

Changeset 51709


Ignore:
Timestamp:
09/01/2021 12:25:10 AM (3 years ago)
Author:
desrosj
Message:

Build/Test Tools: Double escape quotation marks() for Slack “messages”.

This prevents quotation marks from producing invalid JSON errors.

See #52644.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/slack-notifications.yml

    r51679 r51709  
    6464        id: commit-message
    6565        run: |
    66           COMMIT_MESSAGE=$(cat <<'EOF' | awk 'NR==1' | sed 's/`/\\`/g' | sed 's/\"/\\"/g'
     66          COMMIT_MESSAGE=$(cat <<'EOF' | awk 'NR==1' | sed 's/`/\\`/g' | sed 's/\"/\\\\"/g'
    6767          ${{ github.event.workflow_run.head_commit.message }}
    6868          EOF
Note: See TracChangeset for help on using the changeset viewer.