mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Build/Test Tools: Escape $ within commit messages for `$variables.
This ensures the variables are preserved in the Slack message. Props ocean90, desrosj. See #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@51952 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
2
.github/workflows/slack-notifications.yml
vendored
2
.github/workflows/slack-notifications.yml
vendored
@@ -110,7 +110,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' | sed 's/\$/\\$/g'
|
||||
${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_commit.message || github.event.head_commit.message }}
|
||||
EOF
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user