Send valid JSON to autosync workflows for multi-line commit messages (#1981)

Allow multi-line commit message to be used in autosync workflows using the toJSON context function. The toJSON function is required to pretty-print JSON objects to the log.
This commit is contained in:
Octavian FlowiseAI
2024-03-18 09:09:21 +01:00
committed by GitHub
parent bb7373ee62
commit 50a2e911f2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -32,5 +32,5 @@ jobs:
{
"ref": "${{ github.ref }}",
"sha": "${{ github.sha }}",
"commitMessage": "${{ github.event.commits[0].message }}"
"commitMessage": "${{ toJSON(github.event.commits[0].message) }}"
}