chore: testing send message

This commit is contained in:
Bo-Yi Wu
2019-09-26 00:39:41 +08:00
parent 31944fe6c9
commit 5d8f84999a
2 changed files with 35 additions and 15 deletions

View File

@ -230,6 +230,16 @@
arch: arch,
},
steps: [
{
name: 'telegram',
image: 'appleboy/drone-telegram:1.3.1',
pull: 'always',
settings: {
to: { from_secret: 'telegram_to' },
token: { from_secret: 'telegram_token' },
message: '{{#success build.status}} Build #{{build.number}} of `{{repo.name}}` succeeded.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit. message}} ```\n\n🌐 {{ build.link }} {{else}} Build #{{build.number}} of `{{repo.name}}` failed.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit. message}} ```\n\n🌐 {{ build.link }} {{/success}}\n',
},
},
{
name: 'manifest',
image: 'plugins/manifest',