Skip to content

Commit 2ebf18d

Browse files
committed
feat: update workflow
1 parent 8fa42ef commit 2ebf18d

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,12 @@ jobs:
8686
8787
# Wait for Cloudflare Pages deployment and send notification
8888
- name: Wait for Cloudflare Pages deployment
89-
uses: arddluma/cloudflare-pages-slack-notification@v4
89+
uses: dfface/cloudflare-pages-slack-notification@v1
9090
with:
9191
apiToken: ${{ secrets.CF_API_TOKEN }}
9292
accountId: ${{ secrets.CF_ACCOUNT_ID }}
9393
project: ${{ secrets.CF_PAGES_PROJECT }}
94-
slackWebHook: ${{ secrets.FEISHU_WEBHOOK }}
95-
# Comprehensive notification message
96-
message: |
97-
🚀 Cloudflare Pages 部署通知
98-
- 项目: ${{ secrets.CF_PAGES_PROJECT }}
99-
- 环境: production
100-
- 提交信息: ${{ steps.commit.outputs.message }}
101-
- 提交作者: ${{ steps.commit.outputs.author }}
102-
- 提交: ${{ github.sha }}
103-
- 分支: ${{ github.ref }}
104-
- 仓库: ${{ github.repository }}
105-
- 触发事件: ${{ github.event_name }}
94+
notificationType: feishu
95+
webhookUrl: ${{ secrets.FEISHU_WEBHOOK }}
96+
feishuMessage: "🚀 项目 {{project}} 的部署{{success ? '成功' : '失败'}}!\n环境: {{environment}}\n部署URL: {{deploymentUrl}}\n提交: {{commitUrl}}"
97+
commitHash: ${{ steps.push-changes.outputs.commit-hash }}

0 commit comments

Comments
 (0)