Skip to content

Commit 83c99ec

Browse files
committed
fix: use commit msg file in action
1 parent 2ebfaa6 commit 83c99ec

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/generate-messageflow-docs.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,15 @@ jobs:
5656
git config user.email "messageflow-ci-bot@example.com"
5757
git add -A
5858
59-
COMMIT_MSG="Sync: ${{ github.event.client_payload.source_repo }}@${{ github.event.client_payload.source_sha }}"
59+
echo "Sync: ${{ github.event.client_payload.source_repo }}@${{ github.event.client_payload.source_sha }}" > /tmp/commit_msg.txt
6060
6161
# Add changes details if available
6262
if [ -n "${{ steps.generate-docs.outputs.changelog }}" ]; then
63-
COMMIT_MSG="$COMMIT_MSG
64-
65-
${{ steps.generate_docs.outputs.changes }}"
63+
echo "" >> /tmp/commit_msg.txt
64+
echo "${{ steps.generate_docs.outputs.changes }}" >> /tmp/commit_msg.txt
6665
fi
6766
68-
git commit -m "$COMMIT_MSG"
67+
git commit -F /tmp/commit_msg.txt
6968
git remote set-url origin "https://x-access-token:${PAT}@github.com/${GITHUB_REPOSITORY}"
7069
git push
7170
fi

0 commit comments

Comments
 (0)