From 5d65aee36a8c3a3f6df49a897e51adc288898f68 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Wed, 22 Jan 2025 17:03:48 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@59681 602fd350-edb4-49c9-b593-d223f7449a82 --- .github/workflows/slack-notifications.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/slack-notifications.yml b/.github/workflows/slack-notifications.yml index 5d50f89032978..2679e9e761fce 100644 --- a/.github/workflows/slack-notifications.yml +++ b/.github/workflows/slack-notifications.yml @@ -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: