add telegram notify
continuous-integration/drone/push Build is passing Details

feature
thest1tch 2 years ago
parent deaea09721
commit c84df2e82b

@ -19,7 +19,37 @@ steps:
when:
event: push
branch: main
- name: telgram_notify
image: appleboy/drone-telegram
when:
status:
- success
- failure
settings:
# The secrets below can be entered from the Drone UI for this repo
token:
from_secret: telegram_token
to:
from_secret: telegram_chat_id
format: markdown
message: >
{{#success build.status}}
✅ Build #{{build.number}} of `{{repo.name}}` succeeded.
📝 Commit by {{commit.author}} on `{{commit.branch}}`:
```
{{commit.message}}
```
🌐 {{ build.link }}
{{else}}
❌ Build #{{build.number}} of `{{repo.name}}` failed.
📝 Commit by {{commit.author}} on `{{commit.branch}}`:
```
{{commit.message}}
```
🌐 {{ build.link }}
{{/success}}
volumes:
- name: site
host:

Loading…
Cancel
Save