Make WordPress Core

Changeset 59922


Ignore:
Timestamp:
03/04/2025 02:17:13 AM (less than one hour ago)
Author:
peterwilsoncc
Message:

Build/Test Tools: Remove redundant decoding from the commit message that's passed to the Slack API.

This JSON decoding is no longer needed since the commit message was converted to a plain string in r59920. The commit message can now be treated as a plain text string in an environment variable throughout the workflow.

Props johnbillion.
See #62221

File:
1 edited

Legend:

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

    r59920 r59922  
    159159          echo "payload=$PAYLOAD" >> "$GITHUB_OUTPUT"
    160160        env:
    161           COMMIT_MSG_RAW: ${{ ( github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' ) && fromJson( steps.current-commit-message.outputs.result ) || github.event.head_commit.message }}
     161          COMMIT_MSG_RAW: ${{ ( github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' ) && steps.current-commit-message.outputs.result || github.event.head_commit.message }}
    162162
    163163  # Posts notifications when a workflow fails.
Note: See TracChangeset for help on using the changeset viewer.