Skip to content

Commit cc36776

Browse files
committed
新增通知
1 parent 5f7ae03 commit cc36776

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/dingding.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: dingding_webhook
2+
on: push
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- name: Await CF Pages and send Slack notification
9+
id: cf-pages
10+
uses: buyfakett/cloudflare-pages-dingding-webhook@v2
11+
with:
12+
# Uncomment these two lines if you wish to use the Global API Key (Not recommended!)
13+
# accountEmail: ${{ secrets.CF_ACCOUNT_EMAIL }}
14+
# apiKey: ${{ secrets.CF_API_KEY }}
15+
16+
# Use an API token (Recommended!)
17+
apiToken: ${{ secrets.CF_API_TOKEN }}
18+
accountId: ${{ secrets.CF_ACC_ID }}
19+
# CloudFlare Pages project name
20+
project: ${{ secrets.CF_PAGES_PROJECT }}
21+
dingWebHookKey: ${{ secrets.DING_WEBHOOK_KEY }}
22+
# Add this if you want GitHub Deployments (see below)
23+
githubToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)