Skip to content

Commit

Permalink
ci: fix notification failure from multiline commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
jikkai committed Feb 7, 2024
1 parent bd57a84 commit 3dff992
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 }}"
},
Expand Down

0 comments on commit 3dff992

Please sign in to comment.