diff --git a/.github/workflows/discord-notifications.yml b/.github/workflows/discord-notifications.yml index b8951ff41f..2edffafd2a 100644 --- a/.github/workflows/discord-notifications.yml +++ b/.github/workflows/discord-notifications.yml @@ -20,7 +20,7 @@ jobs: "embeds": [ { "title": "${{ github.event.repository.name }} build success - ${{ github.event.workflow_run.name }} #${{ github.event.workflow_run.run_number }}", - "description": "${{ github.event.workflow_run.head_commit.message }}" + "description": "${{ toJSON(github.event.workflow_run.head_commit.message) }}" "url": "${{ github.event.workflow_run.html_url }}", "color": 39236 } @@ -39,7 +39,7 @@ jobs: "embeds": [ { "title": "${{ github.event.repository.name }} build failure - ${{ github.event.workflow_run.name }} #${{ github.event.workflow_run.run_number }}", - "description": "${{ github.event.workflow_run.head_commit.message }}" + "description": "${{ toJSON(github.event.workflow_run.head_commit.message) }}" "url": "${{ github.event.workflow_run.html_url }}", "color": 13565967 }