This commit is contained in:
37
.drone.yml
37
.drone.yml
@ -7,6 +7,8 @@ kind: pipeline
|
||||
name: test
|
||||
|
||||
steps:
|
||||
- name: setup-database
|
||||
image: mongo:5
|
||||
- name: test
|
||||
image: node:16
|
||||
commands:
|
||||
@ -25,20 +27,23 @@ steps:
|
||||
format: markdown
|
||||
message: >
|
||||
{{#success build.status}}
|
||||
✅ `{{repo.name}}` #{{build.number}} 号构建测试已通过\n
|
||||
📝 {{commit.author}} 在 `{{commit.branch}}` 的提交:\n
|
||||
```
|
||||
{{commit.message}}
|
||||
```
|
||||
\n🌐 {{ build.link }}
|
||||
{{else}}
|
||||
❌ `{{repo.name}}` #{{build.number}} 号构建测试已失败\n
|
||||
📝 {{commit.author}} 在 `{{commit.branch}}` 的提交:\n
|
||||
```
|
||||
{{commit.message}}
|
||||
```
|
||||
\n🌐 {{ build.link }}
|
||||
{{/success}}
|
||||
✅ `{{repo.name}}` #{{build.number}} 号构建测试已通过
|
||||
|
||||
|
||||
|
||||
📝 {{commit.author}} 在 `{{commit.branch}}` 的提交:
|
||||
|
||||
```
|
||||
{{commit.message}}
|
||||
```
|
||||
|
||||
🌐 {{ build.link }}
|
||||
{{else}}
|
||||
❌ `{{repo.name}}` #{{build.number}} 号构建测试已失败
|
||||
|
||||
📝 {{commit.author}} 在 `{{commit.branch}}` 的提交:
|
||||
|
||||
```
|
||||
{{commit.message}}
|
||||
```
|
||||
|
||||
🌐 {{ build.link }}
|
||||
{{/success}}
|
Reference in New Issue
Block a user