File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,13 @@ jobs:
5858 git config user.email "messageflow-ci-bot@example.com"
5959 git add -A
6060
61- echo "Sync: ${{ github.event.client_payload.source_repo }}@${{ github.event.client_payload.source_sha }}" > /tmp/commit_msg.txt
61+ COMMIT_MSG= "Sync: ${{ github.event.client_payload.source_repo }}@${{ github.event.client_payload.source_sha }}"
6262
6363 # Add changes details if available
64- echo ${{ steps.generate-docs.outputs.changelog }}
65-
6664 if [ -n "${{ steps.generate-docs.outputs.changelog }}" ]; then
67- echo "" >> /tmp/commit_msg.txt
68- echo "${{ steps.generate_docs.outputs.changes }}" >> /tmp/commit_msg.txt
65+ printf "%s\n\n%s\n" "$COMMIT_MSG" "${{ steps.generate-docs.outputs.changelog }}" > /tmp/commit_msg.txt
66+ else
67+ echo "$COMMIT_MSG" > /tmp/commit_msg.txt
6968 fi
7069
7170 git commit -F /tmp/commit_msg.txt
You can’t perform that action at this time.
0 commit comments