Skip to content

Commit 8fa42ef

Browse files
committed
feat: code by Trae
1 parent 2e76546 commit 8fa42ef

2 files changed

Lines changed: 20 additions & 50 deletions

File tree

.github/workflows/cloudflare-pages-notification.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/gh-pages.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,23 @@ jobs:
8383
\"text\": \"GitHub workflow 通知:\\n- 工作流:Generate Test Files and Deploy to gh-pages\\n- 状态:$STATUS_TEXT\\n- 触发事件:${{ github.event_name }}\\n- 提交:${{ github.sha }}\\n- 分支:${{ github.ref }}\\n- 仓库:${{ github.repository }}\"
8484
}
8585
}"
86+
87+
# Wait for Cloudflare Pages deployment and send notification
88+
- name: Wait for Cloudflare Pages deployment
89+
uses: arddluma/cloudflare-pages-slack-notification@v4
90+
with:
91+
apiToken: ${{ secrets.CF_API_TOKEN }}
92+
accountId: ${{ secrets.CF_ACCOUNT_ID }}
93+
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 }}

0 commit comments

Comments
 (0)