Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

ci: fix notification failure from multiline commit message

白熱3dff992e1a51
diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.yml
index 860c150846..910b8d0936 100644
--- a/.github/workflows/preview-deploy.yml
+++ b/.github/workflows/preview-deploy.yml
@@ -96,6 +96,7 @@ jobs:
outputs:
preview-url: ${{ steps.vercel-demo-dev.outputs.preview-url == '' && steps.vercel-demo.outputs.preview-url || steps.vercel-demo-dev.outputs.preview-url }}
+ commit-message: ${{ steps.commit-message.outputs.value }}
steps:
- name: Checkout
@@ -107,6 +108,10 @@ jobs:
- name: Setup Node.js
uses: ./.github/actions/setup-node
+ - name: Get commit message
+ id: commit-message
+ run: echo "value=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT
+
# ================= Deploy Demo =================
- name: 📦 Build demo
run: pnpm run build:demo
@@ -181,7 +186,7 @@ jobs:
},
"commit": {
"ref": "${{ needs.setup.outputs.ref }}",
- "message": "${{ github.event.workflow_run.head_commit.message }}",
+ "message": "${{ needs.build-demo.outputs.commit-message }}",
"id": "${{ github.event.workflow_run.head_commit.id }}",
"author": "${{ github.event.workflow_run.head_commit.author.name }}"
},