generated from foxundermoon/wechat-work-action
-
Notifications
You must be signed in to change notification settings - Fork 8
70 lines (69 loc) · 2.08 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: 'build-test'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- master
- 'releases/*'
- 'v*'
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
npm install
npm run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
with:
url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
msg_type: text
content: |
text: |
hahahah
from github action test
repository: ${{ github.repository }}
committer: ${{ github.actor }}
compare: ${{ github.event.compare }}
job status: ${{ job.status }}
- uses: ./
with:
url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
msg_type: post
content: |
post:
zh_cn:
title: 我是一个标题
content:
- - tag: text
un_escape: true
text: '第一行 :'
- tag: a
text: 超链接 repo
href: ${{ github.repository }}
- tag: at
user_id: ou_18eac85d35a26f989317ad4f02e8bbbb
- - tag: text
text: '第二行 :'
- tag: text
text: 文本测试
- - tag: img
image_key: d640eeea-4d2f-4cb3-88d8-c964fab53987
width: 300
height: 300
- uses: ./
with:
url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
msg_type: share_chat
content: |
share_chat_id: oc_f5b1a7eb27ae2c7b6adc2a74faf339ff
- uses: ./
with:
url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
msg_type: image
content: |
image_key: img_ecffc3b9-8f14-400f-a014-05eca1a4310g