2022-05-17 00:26:35 +08:00
|
|
|
depends_on:
|
2022-08-15 22:26:02 +08:00
|
|
|
- build
|
|
|
|
- locale
|
|
|
|
- check
|
2022-05-17 00:26:35 +08:00
|
|
|
|
|
|
|
run_on: [ success, failure ]
|
|
|
|
skip_clone: true
|
|
|
|
|
2023-09-19 13:23:43 +08:00
|
|
|
steps:
|
2022-08-15 22:26:02 +08:00
|
|
|
discord:
|
|
|
|
image: appleboy/drone-discord
|
|
|
|
settings:
|
|
|
|
message: "{{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.\n\n📝 Commit by {{commit.author}}:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed.\n\n📝 Commit by {{commit.author}}:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{/success}}\n"
|
|
|
|
webhook_id:
|
|
|
|
from_secret:
|
|
|
|
DISCORD_BOT_ID
|
|
|
|
webhook_token:
|
|
|
|
from_secret:
|
|
|
|
DISCORD_BOT_SECRET
|
|
|
|
when:
|
|
|
|
event: [ push ]
|
|
|
|
branch: main
|