Make WordPress Core

Changeset 51952


Ignore:
Timestamp:
10/29/2021 07:40:26 PM (3 years ago)
Author:
desrosj
Message:

Build/Test Tools: Escape $ within commit messages for `$variables.

This ensures the variables are preserved in the Slack message.

Props ocean90, desrosj.
See #53363.

File:
1 edited

Legend:

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

    r51937 r51952  
    111111        id: commit-message
    112112        run: |
    113           COMMIT_MESSAGE=$(cat <<'EOF' | awk 'NR==1' | sed 's/`/\\`/g' | sed 's/\"/\\\\"/g'
     113          COMMIT_MESSAGE=$(cat <<'EOF' | awk 'NR==1' | sed 's/`/\\`/g' | sed 's/\"/\\\\"/g' | sed 's/\$/\\$/g'
    114114          ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_commit.message || github.event.head_commit.message }}
    115115          EOF
Note: See TracChangeset for help on using the changeset viewer.