Make WordPress Core

Changeset 59681 for trunk


Ignore:
Timestamp:
01/22/2025 05:03:48 PM (6 months ago)
Author:
desrosj
Message:

Build/Test Tools: Fix Slack message payload generation.

The JSON string set as an output for the Slack message payload needs to be one line to prevent causing errors. This ensures jq returns a compact JSON string.

Follow up to [59679].

Props johnbillion.
See #62221.

File:
1 edited

Legend:

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

    r59679 r59681  
    161161            --arg run_url "https://github.com/WordPress/wordpress-develop/actions/runs/${GITHUB_RUN_ID}/attempts/${GITHUB_RUN_ATTEMPT}" \
    162162            --arg commit_message "${COMMIT_MSG}" \
    163             '{workflow_name: $workflow_name, ref_name: $ref_name, run_url: $run_url, commit_message: $commit_message}'
     163            '{workflow_name: $workflow_name, ref_name: $ref_name, run_url: $run_url, commit_message: $commit_message}' | jq -c .
    164164          )"
    165165          echo "payload=$PAYLOAD" >> "$GITHUB_OUTPUT"
Note: See TracChangeset for help on using the changeset viewer.