Skip to content

Commit d70cfb7

Browse files
authored
Merge pull request #18 from lldxlzy/patch-3
Fix notification title and timestamp in workflow
2 parents b58279b + 719c9ea commit d70cfb7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/vercel-notify.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
embeds: |
2121
[
2222
{
23-
"title": "${{ github.event_type == 'vercel.deployment.success' && '✅ 部署成功' || '❌ 部署失败' }}",
24-
"color": ${{ github.event_type == 'vercel.deployment.success' && 65280 || 16711680 }},
23+
"title": "${{ github.event_type == 'vercel.deployment.success' ? '✅ 部署成功' : '❌ 部署失败' }}",
24+
"color": ${{ github.event_type == 'vercel.deployment.success' ? 65280 : 16711680 }},
2525
"fields": [
2626
{
2727
"name": "分支",
@@ -34,6 +34,6 @@ jobs:
3434
"inline": false
3535
}
3636
],
37-
"timestamp": "${{ github.event.head_commit.timestamp }}"
37+
"timestamp": "${{ github.event.client_payload.timestamp }}"
3838
}
3939
]

0 commit comments

Comments
 (0)