From 37407018d21f46f472569f529e84ae3b8b530e72 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Tue, 3 Aug 2021 15:07:34 +0000 Subject: [PATCH] Build/Test Tools: Correct invalid JSON in Slack payload. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The outer `”` marks are not required and produce invalid JSON. See #52644. git-svn-id: https://develop.svn.wordpress.org/trunk@51536 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 15a9929e1c..7d6479f32a 100644 --- a/.github/workflows/slack-notifications.yml +++ b/.github/workflows/slack-notifications.yml @@ -58,7 +58,7 @@ jobs: - name: Construct payload and store as an output id: create-payload - run: echo "::set-output name=payload::\"{\"workflow_name\":\"${{ github.event.workflow_run.name }}\",\"ref_name\":\"${{ github.event.workflow_run.head_branch }}\",\"run_url\":\"${{ github.event.workflow_run.html_url }}\"}\"" + run: echo "::set-output name=payload::{\"workflow_name\":\"${{ github.event.workflow_run.name }}\",\"ref_name\":\"${{ github.event.workflow_run.head_branch }}\",\"run_url\":\"${{ github.event.workflow_run.html_url }}\"}" # Posts notifications when a workflow fails. failure: