Skip to content

Commit

Permalink
Build/Test Tools: Fix Slack message payload generation.
Browse files Browse the repository at this point in the history
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.

git-svn-id: https://develop.svn.wordpress.org/trunk@59681 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
desrosj committed Jan 22, 2025
1 parent 003163f commit 5d65aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/slack-notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:
--arg ref_name "${CURRENT_BRANCH}" \
--arg run_url "https://github.com/WordPress/wordpress-develop/actions/runs/${GITHUB_RUN_ID}/attempts/${GITHUB_RUN_ATTEMPT}" \
--arg commit_message "${COMMIT_MSG}" \
'{workflow_name: $workflow_name, ref_name: $ref_name, run_url: $run_url, commit_message: $commit_message}'
'{workflow_name: $workflow_name, ref_name: $ref_name, run_url: $run_url, commit_message: $commit_message}' | jq -c .
)"
echo "payload=$PAYLOAD" >> "$GITHUB_OUTPUT"
env:
Expand Down

0 comments on commit 5d65aee

Please sign in to comment.