|
|
|
@ -7,34 +7,3 @@ steps: |
|
|
|
commands: |
|
|
|
commands: |
|
|
|
- npm install |
|
|
|
- npm install |
|
|
|
- npm run build |
|
|
|
- npm run build |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pipeline: |
|
|
|
|
|
|
|
telegram-notification: |
|
|
|
|
|
|
|
image: appleboy/drone-telegram |
|
|
|
|
|
|
|
secrets: [telegram_token, telegram_to] |
|
|
|
|
|
|
|
when: |
|
|
|
|
|
|
|
status: [success, failure] |
|
|
|
|
|
|
|
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}} |
|
|
|
|
|
|
|
|